Workaround TSan false positive about clear_hdr_marks/realloc data race
authorIvan Maidanski <ivmai@mail.ru>
Tue, 21 Nov 2017 22:05:13 +0000 (01:05 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 21 Nov 2017 22:05:13 +0000 (01:05 +0300)
commit20468dd131d82be7422aea3c7383ec9201452fce
tree4bf7cb4f4910596e85b7da77d672c5e097b4abb1
parent5217c1158cadb8ace825eba764a0f9fd7b72aa63
Workaround TSan false positive about clear_hdr_marks/realloc data race

* mallocx.c (hb_sz_async_grow_within_hblk): New static function (with
GC_ATTR_NO_SANITIZE_THREAD attribute).
* mallocx.c (GC_realloc): Call hb_sz_async_grow_within_hblk instead of
hhdr->hb_sz=sz.
mallocx.c