src/hotspot/share/prims/jvmtiEnvBase.hpp
changeset 49816 a3e79f97e86b
parent 49480 d7df2dd501ce
child 52877 9e041366c764
equal deleted inserted replaced
49815:76e3bcb9bee1 49816:a3e79f97e86b
   637 // Jvmti module closure to collect all modules loaded to the system.
   637 // Jvmti module closure to collect all modules loaded to the system.
   638 class JvmtiModuleClosure : public StackObj {
   638 class JvmtiModuleClosure : public StackObj {
   639 private:
   639 private:
   640   static GrowableArray<OopHandle> *_tbl; // Protected with Module_lock
   640   static GrowableArray<OopHandle> *_tbl; // Protected with Module_lock
   641 
   641 
   642   static void do_module(ModuleEntry* entry) {
   642   static void do_module(ModuleEntry* entry);
   643     assert_locked_or_safepoint(Module_lock);
       
   644     OopHandle module = entry->module_handle();
       
   645     guarantee(module.resolve() != NULL, "module object is NULL");
       
   646     _tbl->push(module);
       
   647   }
       
   648 
       
   649 public:
   643 public:
   650   jvmtiError get_all_modules(JvmtiEnv* env, jint* module_count_ptr, jobject** modules_ptr);
   644   jvmtiError get_all_modules(JvmtiEnv* env, jint* module_count_ptr, jobject** modules_ptr);
   651 };
   645 };
   652 
   646 
   653 #endif // SHARE_VM_PRIMS_JVMTIENVBASE_HPP
   647 #endif // SHARE_VM_PRIMS_JVMTIENVBASE_HPP