8210155: Lock ClassLoaderDataGraph

In preparation for concurrent class unloading.

Reviewed-by: hseigel, eosterlund
This commit is contained in:
Coleen Phillimore 2018-08-31 07:03:46 -04:00
parent 71479d029a
commit eb9259138f
19 changed files with 199 additions and 82 deletions

View file

@ -1489,6 +1489,7 @@ void JvmtiModuleClosure::do_module(ModuleEntry* entry) {
jvmtiError
JvmtiModuleClosure::get_all_modules(JvmtiEnv* env, jint* module_count_ptr, jobject** modules_ptr) {
ResourceMark rm;
MutexLocker mcld(ClassLoaderDataGraph_lock);
MutexLocker ml(Module_lock);
_tbl = new GrowableArray<OopHandle>(77);