src/hotspot/share/jvmci/metadataHandleBlock.cpp
changeset 59252 623722a6aeb9
parent 54669 ad45b3802d4e
child 59290 97d13893ec3c
equal deleted inserted replaced
59251:4cbfa5077d68 59252:623722a6aeb9
   139         if (klass->class_loader_data()->is_unloading()) {
   139         if (klass->class_loader_data()->is_unloading()) {
   140           // This needs to be marked so that it's no longer scanned
   140           // This needs to be marked so that it's no longer scanned
   141           // but can't be put on the free list yet. The
   141           // but can't be put on the free list yet. The
   142           // HandleCleaner will set this to NULL and
   142           // HandleCleaner will set this to NULL and
   143           // put it on the free list.
   143           // put it on the free list.
   144           jlong old_value = Atomic::cmpxchg((jlong) (ptr_tag), (jlong*)handle, (jlong) value);
   144           jlong old_value = Atomic::cmpxchg((jlong*)handle, (jlong) value, (jlong) (ptr_tag));
   145           if (old_value == (jlong) value) {
   145           if (old_value == (jlong) value) {
   146             // Success
   146             // Success
   147           } else {
   147           } else {
   148             guarantee(old_value == 0, "only other possible value");
   148             guarantee(old_value == 0, "only other possible value");
   149           }
   149           }