changeset 10740:ec28f168a115

8071788: BlockInliningWrapper.asType() is broken Reviewed-by: jrose
author vlivanov
date Thu, 29 Jan 2015 10:29:49 -0800
parents 1445e9402870
children 3e0642edd067
files src/share/classes/java/lang/invoke/MethodHandleImpl.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/lang/invoke/MethodHandleImpl.java	Thu Jan 29 10:27:30 2015 -0800
+++ b/src/share/classes/java/lang/invoke/MethodHandleImpl.java	Thu Jan 29 10:29:49 2015 -0800
@@ -827,7 +827,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