< prev index next >

src/hotspot/share/services/mallocSiteTable.cpp

Print this page

        

@@ -256,8 +256,8 @@
 #endif
   }
   _lock_state = ExclusiveLock;
 }
 
-bool MallocSiteHashtableEntry::atomic_insert(const MallocSiteHashtableEntry* entry) {
-  return Atomic::cmpxchg(entry, (const MallocSiteHashtableEntry**)&_next, (const MallocSiteHashtableEntry*)NULL) == NULL;
+bool MallocSiteHashtableEntry::atomic_insert(MallocSiteHashtableEntry* entry) {
+  return Atomic::cmpxchg(entry, &_next, (MallocSiteHashtableEntry*)NULL) == NULL;
 }
< prev index next >