]> granicus.if.org Git - gc/commit
Hide value stored to thread-specific entries for a test purpose
authorIvan Maidanski <ivmai@mail.ru>
Fri, 25 May 2018 07:12:56 +0000 (10:12 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 25 May 2018 07:12:56 +0000 (10:12 +0300)
commit89e66ca7e4626344b74ff848e0c307c1870201f2
treefff52338189d69bb7f5a03776ded58fe65a2919d
parent689b081f19739961085275ace06a82a3bf1dbe5a
Hide value stored to thread-specific entries for a test purpose

* include/private/specific.h (ts_entry_value_t): New type.
* include/private/specific.h (TS_HIDE_VALUE, TS_REVEAL_PTR): New macro.
* include/private/specific.h (thread_specific_entry): Replace void* to
ts_entry_value_t (for value).
* include/private/specific.h (GC_getspecific): Apply TS_REVEAL_PTR to
entry->value.
* specific.c [USE_CUSTOM_SPECIFIC] (GC_slow_getspecific): Likewise.
* specific.c [USE_CUSTOM_SPECIFIC] (GC_setspecific): Apply TS_HIDE_VALUE
to value stored to entry.
include/private/specific.h
specific.c