uncached = dropArguments(uncached, 0, ThreadContext.class);
site.setTarget(uncached);
return (Boolean)uncached.invokeWithArguments(context);
}
Invalidator invalidator = variable.getInvalidator();
boolean value = variable.getAccessor().getValue().isTrue();
MethodHandle target = constant(boolean.class, value);
target = dropArguments(target, 0, ThreadContext.class);
MethodHandle fallback = lookup().findStatic(InvokeDynamicSupport.class, "getGlobalBooleanFallback", methodType(boolean.class, GlobalSite.class, ThreadContext.class));
fallback = fallback.bindTo(site);
target = ((SwitchPoint)invalidator.getData()).guardWithTest(target, fallback);
site.setTarget(target);
if (Options.INVOKEDYNAMIC_LOG_GLOBALS.load()) LOG.info("global " + site.name() + " (" + site.file() + ":" + site.line() + ") cached as boolean");