diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-03-23 21:29:28 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-03-23 21:32:44 +0300 |
commit | effa229cd92c83abef1180155d48cd5e69f439f1 (patch) | |
tree | 966edb9606694e71a1d95f63567cf20c09d75c10 /extra | |
parent | 877e5ea565b7afd1890f33c89c3cff148ccd32a6 (diff) | |
download | bdwgc-effa229cd92c83abef1180155d48cd5e69f439f1.tar.gz |
Avoid potential race between malloc_kind and mark_thread_local_fls_for
Issue #214 (bdwgc).
* include/gc_inline.h (GC_FAST_M_AO_STORE): New internal macro.
* include/gc_inline.h (GC_FAST_MALLOC_GRANS): Use GC_FAST_M_AO_STORE.
* thread_local_alloc.c [THREAD_LOCAL_ALLOC]
(GC_mark_thread_local_fls_for): Use AO_load to get _freelists[i][j]
value; add comment.
* thread_local_alloc.c [THREAD_LOCAL_ALLOC && GC_GCJ_SUPPORT]
(GC_mark_thread_local_fls_for): Use AO_load to get gcj_freelists[j].
Diffstat (limited to 'extra')
0 files changed, 0 insertions, 0 deletions