src/hotspot/share/utilities/hashtable.cpp
changeset 47634 6a0c42c40cd1
parent 47216 71c04702a3d5
child 47774 69c081ca110a
--- a/src/hotspot/share/utilities/hashtable.cpp	Mon Oct 16 20:22:41 2017 +0000
+++ b/src/hotspot/share/utilities/hashtable.cpp	Mon Oct 16 22:36:06 2017 -0400
@@ -190,7 +190,7 @@
   BasicHashtableEntry<F>* current = _free_list;
   while (true) {
     context->_removed_tail->set_next(current);
-    BasicHashtableEntry<F>* old = (BasicHashtableEntry<F>*)Atomic::cmpxchg_ptr(context->_removed_head, &_free_list, current);
+    BasicHashtableEntry<F>* old = Atomic::cmpxchg(context->_removed_head, &_free_list, current);
     if (old == current) {
       break;
     }