< prev index next >
src/hotspot/share/jvmci/metadataHandleBlock.cpp
Print this page
*** 139,149 ****
if (klass->class_loader_data()->is_unloading()) {
// This needs to be marked so that it's no longer scanned
// but can't be put on the free list yet. The
// HandleCleaner will set this to NULL and
// put it on the free list.
! jlong old_value = Atomic::cmpxchg((jlong) (ptr_tag), (jlong*)handle, (jlong) value);
if (old_value == (jlong) value) {
// Success
} else {
guarantee(old_value == 0, "only other possible value");
}
--- 139,149 ----
if (klass->class_loader_data()->is_unloading()) {
// This needs to be marked so that it's no longer scanned
// but can't be put on the free list yet. The
// HandleCleaner will set this to NULL and
// put it on the free list.
! jlong old_value = Atomic::cmpxchg((jlong*)handle, (jlong) value, (jlong) (ptr_tag));
if (old_value == (jlong) value) {
// Success
} else {
guarantee(old_value == 0, "only other possible value");
}
< prev index next >