< prev index next >
src/java.base/share/classes/sun/misc/Cleaner.java
Print this page
*** 140,150 ****
if (!remove(this))
return;
try {
thunk.run();
} catch (final Throwable x) {
! AccessController.doPrivileged(new PrivilegedAction<Void>() {
public Void run() {
if (System.err != null)
new Error("Cleaner terminated abnormally", x)
.printStackTrace();
System.exit(1);
--- 140,150 ----
if (!remove(this))
return;
try {
thunk.run();
} catch (final Throwable x) {
! AccessController.doPrivileged(new PrivilegedAction<>() {
public Void run() {
if (System.err != null)
new Error("Cleaner terminated abnormally", x)
.printStackTrace();
System.exit(1);
< prev index next >