8268339: Upstream: 8267989: Exceptions thrown during upcalls should be handled

Reviewed-by: psandoz, mcimadamore
This commit is contained in:
Jorn Vernee 2021-06-10 08:44:28 +00:00
parent 1fd81464ec
commit ab01cb547d
8 changed files with 229 additions and 5 deletions

View file

@ -2398,6 +2398,11 @@ public final class System {
public long findNative(ClassLoader loader, String entry) {
return ClassLoader.findNative(loader, entry);
}
@Override
public void exit(int statusCode) {
Shutdown.exit(statusCode);
}
});
}
}

View file

@ -395,4 +395,10 @@ public interface JavaLangAccess {
Object classData(Class<?> c);
long findNative(ClassLoader loader, String entry);
/**
* Direct access to Shutdown.exit to avoid security manager checks
* @param statusCode the status code
*/
void exit(int statusCode);
}