diff src/share/vm/memory/allocation.cpp @ 11034:e0c9a1d29eb4

8016325: JVM hangs verifying system dictionary Summary: Minimize redundant verifications of Klasses. Reviewed-by: hseigel, jmasa
author coleenp
date Mon, 24 Jun 2013 18:55:46 -0400
parents a1ebd310d5c1
children 2b9380b0bf0b
line wrap: on
line diff
--- a/src/share/vm/memory/allocation.cpp	Sun Jun 23 22:08:28 2013 -0700
+++ b/src/share/vm/memory/allocation.cpp	Mon Jun 24 18:55:46 2013 -0400
@@ -71,13 +71,6 @@
   return MetaspaceShared::is_in_shared_space(this);
 }
 
-bool MetaspaceObj::is_metadata() const {
-  // GC Verify checks use this in guarantees.
-  // TODO: either replace them with is_metaspace_object() or remove them.
-  // is_metaspace_object() is slower than this test.  This test doesn't
-  // seem very useful for metaspace objects anymore though.
-  return !Universe::heap()->is_in_reserved(this);
-}
 
 bool MetaspaceObj::is_metaspace_object() const {
   return Metaspace::contains((void*)this);