src/hotspot/share/gc/g1/heapRegionRemSet.cpp
changeset 59252 623722a6aeb9
parent 59247 56bf71d64d51
--- a/src/hotspot/share/gc/g1/heapRegionRemSet.cpp	Mon Nov 25 12:32:40 2019 +0100
+++ b/src/hotspot/share/gc/g1/heapRegionRemSet.cpp	Mon Nov 25 12:33:15 2019 +0100
@@ -46,7 +46,7 @@
   PerRegionTable* fl = _free_list;
   while (fl != NULL) {
     PerRegionTable* nxt = fl->next();
-    PerRegionTable* res = Atomic::cmpxchg(nxt, &_free_list, fl);
+    PerRegionTable* res = Atomic::cmpxchg(&_free_list, fl, nxt);
     if (res == fl) {
       fl->init(hr, true);
       return fl;