mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8351970: Retire JavaLangAccess::exit
Reviewed-by: rgiulietti, liach, djelinski
This commit is contained in:
parent
3aa6d62afe
commit
19154f7af3
@ -2196,11 +2196,6 @@ public final class System {
|
||||
return ClassLoader.nativeLibrariesFor(loader);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void exit(int statusCode) {
|
||||
Shutdown.exit(statusCode);
|
||||
}
|
||||
|
||||
public Thread[] getAllThreads() {
|
||||
return Thread.getAllThreads();
|
||||
}
|
||||
|
||||
@ -477,12 +477,6 @@ public interface JavaLangAccess {
|
||||
*/
|
||||
NativeLibraries nativeLibrariesFor(ClassLoader loader);
|
||||
|
||||
/**
|
||||
* Direct access to Shutdown.exit to avoid security manager checks
|
||||
* @param statusCode the status code
|
||||
*/
|
||||
void exit(int statusCode);
|
||||
|
||||
/**
|
||||
* Returns an array of all platform threads.
|
||||
*/
|
||||
|
||||
@ -72,7 +72,6 @@ public final class SharedUtils {
|
||||
private SharedUtils() {
|
||||
}
|
||||
|
||||
private static final JavaLangAccess JLA = SharedSecrets.getJavaLangAccess();
|
||||
private static final JavaLangInvokeAccess JLIA = SharedSecrets.getJavaLangInvokeAccess();
|
||||
|
||||
private static final MethodHandle MH_ALLOC_BUFFER;
|
||||
@ -310,7 +309,7 @@ public final class SharedUtils {
|
||||
t.printStackTrace();
|
||||
System.err.println("Unrecoverable uncaught exception encountered. The VM will now exit");
|
||||
} finally {
|
||||
JLA.exit(1);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user