# HG changeset patch # User vlivanov # Date 1422556189 28800 # Node ID 31bbb5dcc60388afdcb57deba7a9ee65a4694a6f # Parent cf13db21f97081fe8dcd1ace580d116f6bc05a57 8071788: BlockInliningWrapper.asType() is broken Reviewed-by: jrose diff -r cf13db21f970 -r 31bbb5dcc603 jdk/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java --- a/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java Thu Jan 29 10:29:43 2015 -0800 +++ b/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java Thu Jan 29 10:29:49 2015 -0800 @@ -832,7 +832,7 @@ 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