diff src/share/vm/memory/metaspace.hpp @ 7176:59c790074993

8003635: NPG: AsynchGetCallTrace broken by Method* virtual call Summary: Make metaspace::contains be lock free and used to see if something is in metaspace, also compare Method* with vtbl pointer. Reviewed-by: dholmes, sspitsyn, dcubed, jmasa
author coleenp
date Wed, 28 Nov 2012 17:50:21 -0500
parents 6bc207d87e5d
children 5fafdef522c6
line wrap: on
line diff
--- a/src/share/vm/memory/metaspace.hpp	Wed Nov 28 08:43:26 2012 -0800
+++ b/src/share/vm/memory/metaspace.hpp	Wed Nov 28 17:50:21 2012 -0500
@@ -135,11 +135,7 @@
 
   static bool is_initialized() { return _class_space_list != NULL; }
 
-#ifndef PRODUCT
-  bool contains(const void *ptr) const;
-  bool contains_class(const void *ptr) const;
-#endif
-
+  static bool contains(const void *ptr);
   void dump(outputStream* const out) const;
 
   void print_on(outputStream* st) const;