< prev index next >
src/hotspot/share/services/mallocSiteTable.hpp
Print this page
*** 77,90 ****
}
// 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);
! }
void set_callsite(const MallocSite& site) {
_malloc_site = site;
}
--- 77,87 ----
}
// 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(MallocSiteHashtableEntry* entry);
void set_callsite(const MallocSite& site) {
_malloc_site = site;
}
< prev index next >