]> granicus.if.org Git - gc/commit
Fix thread_local_alloc GC_malloc[_atomic] for USE_CUSTOM_SPECIFIC TLS
authorIvan Maidanski <ivmai@mail.ru>
Tue, 15 Nov 2011 10:44:29 +0000 (14:44 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 15 Nov 2011 11:51:34 +0000 (15:51 +0400)
commit5651cb612de85c8c84773da02213e8fe3a45754d
tree69deaaf24c7befe701997b754459b15b5b07ef46
parent0c3964c10770b766765aa1a6084d3ddfa7da1024
Fix thread_local_alloc GC_malloc[_atomic] for USE_CUSTOM_SPECIFIC TLS
platforms (e.g., Solaris)

* thread_local_alloc.c (GC_malloc, GC_malloc_atomic): Test result of
GC_getspecific() for NULL in all cases except for USE_COMPILER_TLS and
USE_WIN32_COMPILER_TLS (i.e., no-op implementation of GC_getspecific).
thread_local_alloc.c