< prev index next >

src/share/vm/runtime/jniHandles.cpp

Print this page

        

@@ -99,11 +99,11 @@
       MutexLocker ml(JNIGlobalHandle_lock);
       assert(Universe::heap()->is_in_reserved(obj()), "sanity check");
       res = _weak_global_handles->allocate_handle(obj());
     }
     // Add weak tag.
-    assert(is_ptr_aligned(res, weak_tag_alignment), "invariant");
+    assert(is_aligned(res, weak_tag_alignment), "invariant");
     char* tptr = reinterpret_cast<char*>(res) + weak_tag_value;
     res = reinterpret_cast<jobject>(tptr);
   } else {
     CHECK_UNHANDLED_OOPS_ONLY(Thread::current()->clear_unhandled_oops());
   }
< prev index next >