< prev index next >
src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java
Print this page
8145371: ClassCastException thrown in LambdaFormEditor.getInCache
Reviewed-by: mhaupt
*** 907,917 ****
boolean countDown() {
int c = count;
maybeCustomizeTarget();
if (c <= 1) {
! // Try to limit number of updates. MethodHandle.updateForm() doesn't guarantee LF update visibility.
if (isCounting) {
isCounting = false;
return true;
} else {
return false;
--- 907,917 ----
boolean countDown() {
int c = count;
maybeCustomizeTarget();
if (c <= 1) {
! // Try to limit number of updates.
if (isCounting) {
isCounting = false;
return true;
} else {
return false;
< prev index next >