< prev index next >

src/hotspot/share/services/mallocSiteTable.hpp

Print this page
rev 47400 : [mq]: cmpxchg_ptr

@@ -77,14 +77,11 @@
   }
 
   // Insert an entry atomically.
   // Return true if the entry is inserted successfully.
   // The operation can be failed due to contention from other thread.
-  bool atomic_insert(const MallocSiteHashtableEntry* entry) {
-    return (Atomic::cmpxchg_ptr((void*)entry, (volatile void*)&_next,
-      NULL) == NULL);
-  }
+  bool atomic_insert(const MallocSiteHashtableEntry* entry);
 
   void set_callsite(const MallocSite& site) {
     _malloc_site = site;
   }
 
< prev index next >