File tree 3 files changed +1
-13
lines changed
src/java.base/share/classes
3 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -2196,11 +2196,6 @@ public NativeLibraries nativeLibrariesFor(ClassLoader loader) {
2196
2196
return ClassLoader .nativeLibrariesFor (loader );
2197
2197
}
2198
2198
2199
- @ Override
2200
- public void exit (int statusCode ) {
2201
- Shutdown .exit (statusCode );
2202
- }
2203
-
2204
2199
public Thread [] getAllThreads () {
2205
2200
return Thread .getAllThreads ();
2206
2201
}
Original file line number Diff line number Diff line change @@ -477,12 +477,6 @@ public interface JavaLangAccess {
477
477
*/
478
478
NativeLibraries nativeLibrariesFor (ClassLoader loader );
479
479
480
- /**
481
- * Direct access to Shutdown.exit to avoid security manager checks
482
- * @param statusCode the status code
483
- */
484
- void exit (int statusCode );
485
-
486
480
/**
487
481
* Returns an array of all platform threads.
488
482
*/
Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ public final class SharedUtils {
72
72
private SharedUtils () {
73
73
}
74
74
75
- private static final JavaLangAccess JLA = SharedSecrets .getJavaLangAccess ();
76
75
private static final JavaLangInvokeAccess JLIA = SharedSecrets .getJavaLangInvokeAccess ();
77
76
78
77
private static final MethodHandle MH_ALLOC_BUFFER ;
@@ -310,7 +309,7 @@ public static void handleUncaughtException(Throwable t) {
310
309
t .printStackTrace ();
311
310
System .err .println ("Unrecoverable uncaught exception encountered. The VM will now exit" );
312
311
} finally {
313
- JLA .exit (1 );
312
+ System .exit (1 );
314
313
}
315
314
}
316
315
}
You can’t perform that action at this time.
0 commit comments