8229236: CriticalJNINatives: dll handling should be done in native thread state

Temporarily switch thread state from _thread_in_vm to _thread_in_native to execute I/O.

Reviewed-by: dlong, dholmes
This commit is contained in:
Martin Doerr 2019-08-12 10:02:25 +02:00
parent fd4dc1dfd2
commit 50baeb8180
13 changed files with 36 additions and 23 deletions

View file

@ -828,11 +828,6 @@ void Method::clear_native_function() {
clear_code();
}
address Method::critical_native_function() {
methodHandle mh(this);
return NativeLookup::lookup_critical_entry(mh);
}
void Method::set_signature_handler(address handler) {
address* signature_handler = signature_handler_addr();