mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8197531: Miscellaneous changes imported from jsr166 CVS 2018-04
Reviewed-by: martin, psandoz
This commit is contained in:
parent
a4f3a1d9eb
commit
cdd36df363
27 changed files with 194 additions and 34 deletions
|
@ -555,7 +555,7 @@ public abstract class AbstractQueuedSynchronizer
|
|||
THREAD = l.findVarHandle(Node.class, "thread", Thread.class);
|
||||
WAITSTATUS = l.findVarHandle(Node.class, "waitStatus", int.class);
|
||||
} catch (ReflectiveOperationException e) {
|
||||
throw new Error(e);
|
||||
throw new ExceptionInInitializerError(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2308,7 +2308,7 @@ public abstract class AbstractQueuedSynchronizer
|
|||
HEAD = l.findVarHandle(AbstractQueuedSynchronizer.class, "head", Node.class);
|
||||
TAIL = l.findVarHandle(AbstractQueuedSynchronizer.class, "tail", Node.class);
|
||||
} catch (ReflectiveOperationException e) {
|
||||
throw new Error(e);
|
||||
throw new ExceptionInInitializerError(e);
|
||||
}
|
||||
|
||||
// Reduce the risk of rare disastrous classloading in first call to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue