equal
deleted
inserted
replaced
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 |