Enable thread-local storage usage for GC_malloc/calloc_explicitly_typed
authorThomas Linder Puls <thomas_linder_puls@hotmail.com>
Fri, 22 Jul 2016 08:39:04 +0000 (11:39 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 22 Jul 2016 08:46:07 +0000 (11:46 +0300)
commit55d6247c7885539186a4fa423cdf064c8d04bf13
tree05233ef6b7bdcc33f5172b500fcd8c8e97f9e5aa
parent764ad4986c2d3c01998571bf717b394453658de0
Enable thread-local storage usage for GC_malloc/calloc_explicitly_typed

Use GC_malloc_kind instead of explicit allocation algorithm
implementation.

* typd_mlc.c: Include gc_inline.h to declare GC_malloc_kind.
* typd_mlc.c (GC_arobjfreelist): Remove.
* typd_mlc.c (GC_init_explicit_typing): Do not use GC_arobjfreelist.
* typd_mlc.c (GC_malloc_explicitly_typed, GC_calloc_explicitly_typed):
Change type of "op" local variable from ptr_t to word*.
* typd_mlc.c (GC_malloc_explicitly_typed, GC_calloc_explicitly_typed):
Use GC_malloc_kind instead of explicit allocator (those implementation
was same as for GC_malloc_kind).
* typd_mlc.c (GC_calloc_explicitly_typed): Remove"register" keyword for
"descr_type" local variable; reformat code slightly; use EXPECT to
check GC_general_register_disappearing_link result for out-of-memory.
typd_mlc.c