]> granicus.if.org Git - gc/commit
Fix GC_check_fl_marks regarding concurrent access
authorPetter Urkedal <paurkedal@gmail.com>
Sat, 21 Apr 2012 09:28:12 +0000 (13:28 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 21 Apr 2012 09:28:12 +0000 (13:28 +0400)
commitc3dae88f9cc38c75d8450c0946fe9c4206cfd592
treee0df3acdd1b0032fae92abc2f1ecae693f9ca897
parente67ab084068f6fc192b3d7505565f7d825cb82da
Fix GC_check_fl_marks regarding concurrent access

* alloc.c (GC_check_fl_marks): Re-read each pointer atomically before
following the pointed-to link and bail out if the result is different
(this can happen if the thread has popped the object off the
free-list); the function is a no-op if AO_load is unavailable.
alloc.c