8071788: BlockInliningWrapper.asType() is broken

Reviewed-by: jrose
This commit is contained in:
Vladimir Ivanov 2015-01-29 10:29:49 -08:00
parent 676ea83240
commit 55d14bca62

View File

@ -832,7 +832,7 @@ import static java.lang.invoke.MethodHandles.Lookup.IMPL_LOOKUP;
MethodHandle wrapper;
if (isCounting) {
LambdaForm lform;
lform = countingFormProducer.apply(target);
lform = countingFormProducer.apply(newTarget);
wrapper = new CountingWrapper(newTarget, lform, countingFormProducer, nonCountingFormProducer, DONT_INLINE_THRESHOLD);
} else {
wrapper = newTarget; // no need for a counting wrapper anymore