src/hotspot/share/code/codeCache.cpp
changeset 59252 623722a6aeb9
parent 58545 725244418646
child 59290 97d13893ec3c
--- a/src/hotspot/share/code/codeCache.cpp	Mon Nov 25 12:32:40 2019 +0100
+++ b/src/hotspot/share/code/codeCache.cpp	Mon Nov 25 12:33:15 2019 +0100
@@ -749,7 +749,7 @@
     for (;;) {
       ExceptionCache* purge_list_head = Atomic::load(&_exception_cache_purge_list);
       entry->set_purge_list_next(purge_list_head);
-      if (Atomic::cmpxchg(entry, &_exception_cache_purge_list, purge_list_head) == purge_list_head) {
+      if (Atomic::cmpxchg(&_exception_cache_purge_list, purge_list_head, entry) == purge_list_head) {
         break;
       }
     }