8276658: Clean up JNI local handles code

Reviewed-by: dholmes, pchilanomate
This commit is contained in:
Coleen Phillimore 2021-11-12 16:17:15 +00:00
parent aeba653034
commit 3b2585c02b
25 changed files with 123 additions and 350 deletions

View file

@ -1510,7 +1510,7 @@ JvmtiModuleClosure::get_all_modules(JvmtiEnv* env, jint* module_count_ptr, jobje
return JVMTI_ERROR_OUT_OF_MEMORY;
}
for (jint idx = 0; idx < len; idx++) {
array[idx] = JNIHandles::make_local(Thread::current(), _tbl->at(idx).resolve());
array[idx] = JNIHandles::make_local(_tbl->at(idx).resolve());
}
_tbl = NULL;
*modules_ptr = array;