< prev index next >
src/hotspot/share/memory/universe.cpp
Print this page
*** 509,519 ****
return _reference_pending_list != NULL;
}
oop Universe::swap_reference_pending_list(oop list) {
assert_pll_locked(is_locked);
! return Atomic::xchg(list, &_reference_pending_list);
}
#undef assert_pll_locked
#undef assert_pll_ownership
--- 509,519 ----
return _reference_pending_list != NULL;
}
oop Universe::swap_reference_pending_list(oop list) {
assert_pll_locked(is_locked);
! return Atomic::xchg(&_reference_pending_list, list);
}
#undef assert_pll_locked
#undef assert_pll_ownership
*** 578,588 ****
// provided by the default error.
// - otherwise, return the default error, without a stack trace.
int next;
if ((_preallocated_out_of_memory_error_avail_count > 0) &&
SystemDictionary::Throwable_klass()->is_initialized()) {
! next = (int)Atomic::add(-1, &_preallocated_out_of_memory_error_avail_count);
assert(next < (int)PreallocatedOutOfMemoryErrorCount, "avail count is corrupt");
} else {
next = -1;
}
if (next < 0) {
--- 578,588 ----
// provided by the default error.
// - otherwise, return the default error, without a stack trace.
int next;
if ((_preallocated_out_of_memory_error_avail_count > 0) &&
SystemDictionary::Throwable_klass()->is_initialized()) {
! next = (int)Atomic::add(&_preallocated_out_of_memory_error_avail_count, -1);
assert(next < (int)PreallocatedOutOfMemoryErrorCount, "avail count is corrupt");
} else {
next = -1;
}
if (next < 0) {
< prev index next >