mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8276658: Clean up JNI local handles code
Reviewed-by: dholmes, pchilanomate
This commit is contained in:
parent
aeba653034
commit
3b2585c02b
25 changed files with 123 additions and 350 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue