diff src/share/vm/oops/metadata.hpp @ 17885:bd58c9e40d0a

8035735: Metaspace::contains become extremely slow in some cases Summary: Call is_metadata instead which does less work for the call in debugInfo.hpp which is called for all compiled code stack frames. Reviewed-by: jmasa, dcubed
author coleenp
date Mon, 03 Mar 2014 13:58:52 -0500
parents f9e35a9dc8c7
children 92aa6797d639 52b4284cb496
line wrap: on
line diff
--- a/src/share/vm/oops/metadata.hpp	Fri Apr 11 20:02:37 2014 +0000
+++ b/src/share/vm/oops/metadata.hpp	Mon Mar 03 13:58:52 2014 -0500
@@ -42,6 +42,7 @@
   // Rehashing support for tables containing pointers to this
   unsigned int new_hash(juint seed)   { ShouldNotReachHere();  return 0; }
 
+  virtual bool is_metadata()           const volatile { return true; }
   virtual bool is_klass()              const volatile { return false; }
   virtual bool is_method()             const volatile { return false; }
   virtual bool is_methodData()         const volatile { return false; }