]> 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>
Sun, 29 Apr 2012 13:55:51 +0000 (17:55 +0400)
commit8ece23f37d8a854a3618c691cd776b585e5657db
treef5bc04ad0b45f18fd1f78b32d57758f9cc19df52
parent37c2588fcfdee149430329346a31e10a2ae50922
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