src/hotspot/share/prims/jvmtiEnvBase.hpp
changeset 49816 a3e79f97e86b
parent 49480 d7df2dd501ce
child 52877 9e041366c764
--- a/src/hotspot/share/prims/jvmtiEnvBase.hpp	Wed Apr 18 15:57:19 2018 +0200
+++ b/src/hotspot/share/prims/jvmtiEnvBase.hpp	Wed Apr 18 10:39:40 2018 -0400
@@ -639,13 +639,7 @@
 private:
   static GrowableArray<OopHandle> *_tbl; // Protected with Module_lock
 
-  static void do_module(ModuleEntry* entry) {
-    assert_locked_or_safepoint(Module_lock);
-    OopHandle module = entry->module_handle();
-    guarantee(module.resolve() != NULL, "module object is NULL");
-    _tbl->push(module);
-  }
-
+  static void do_module(ModuleEntry* entry);
 public:
   jvmtiError get_all_modules(JvmtiEnv* env, jint* module_count_ptr, jobject** modules_ptr);
 };