hg: jdk8/tl/jdk: 9 new changesets

john.r.rose at oracle.com john.r.rose at oracle.com
Sat Oct 5 12:31:44 UTC 2013


Changeset: 44da760eed4b
Author:    jrose
Date:      2013-10-05 05:30 -0700
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/44da760eed4b

8024761: JSR 292 improve performance of generic invocation
Summary: use a per-MH one element cache for MH.asType to speed up MH.invoke; also cache enough MH constants to cache LMF.metafactory
Reviewed-by: twisti

! src/share/classes/java/lang/invoke/BoundMethodHandle.java
! src/share/classes/java/lang/invoke/CallSite.java
- src/share/classes/java/lang/invoke/InvokeGeneric.java
! src/share/classes/java/lang/invoke/Invokers.java
! src/share/classes/java/lang/invoke/LambdaForm.java
! src/share/classes/java/lang/invoke/MemberName.java
! src/share/classes/java/lang/invoke/MethodHandle.java
! src/share/classes/java/lang/invoke/MethodHandleImpl.java
! src/share/classes/java/lang/invoke/MethodHandleNatives.java
! src/share/classes/java/lang/invoke/MethodHandles.java
! src/share/classes/java/lang/invoke/MethodTypeForm.java

Changeset: 97d5cc1e7586
Author:    jrose
Date:      2013-10-05 05:30 -0700
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/97d5cc1e7586

8001105: findVirtual of Object[].clone produces internal error
Summary: Replicate JVM logic for access control that makes Object.clone appear public when applied to an array type.
Reviewed-by: twisti

! src/share/classes/java/lang/invoke/MethodHandles.java
! test/java/lang/invoke/MethodHandlesTest.java

Changeset: 91535ade7349
Author:    jrose
Date:      2013-10-05 05:30 -0700
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/91535ade7349

8019417: JSR 292 javadoc should clarify method handle arity limits
Summary: clarification of erroneous reading of spec. that led to 7194534
Reviewed-by: twisti, darcy

! src/share/classes/java/lang/invoke/MethodHandle.java
! src/share/classes/java/lang/invoke/MethodHandles.java
! test/java/lang/invoke/BigArityTest.java

Changeset: d391e062b983
Author:    jrose
Date:      2013-10-05 05:30 -0700
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/d391e062b983

8001109: arity mismatch on a call to spreader method handle should elicit IllegalArgumentException
Summary: Document error conditions that may occur when calling a "spreader" method handle.  Use IAE in all cases.
Reviewed-by: twisti, vlivanov

! src/share/classes/java/lang/invoke/MethodHandle.java
! src/share/classes/java/lang/invoke/MethodHandleImpl.java
! src/share/classes/java/lang/invoke/MethodHandles.java
! test/java/lang/invoke/JavaDocExamplesTest.java

Changeset: acdf5bf1a918
Author:    jrose
Date:      2013-10-05 05:30 -0700
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/acdf5bf1a918

8001108: an attempt to use "<init>" as a method name should elicit NoSuchMethodException
Summary: add an explicit check for leading "<", upgrade the unit tests
Reviewed-by: twisti, darcy

! src/share/classes/java/lang/invoke/MethodHandles.java
! test/java/lang/invoke/JavaDocExamplesTest.java
! test/java/lang/invoke/MethodHandlesTest.java

Changeset: df6236da299d
Author:    jrose
Date:      2013-10-05 05:30 -0700
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/df6236da299d

8024599: JSR 292 direct method handles need to respect initialization rules for static members
Summary: Align MH semantic with bytecode behavior of constructor and static member accesses, regarding <clinit> invocation.
Reviewed-by: twisti, darcy, abuckley, vlivanov

! src/share/classes/java/lang/invoke/MethodHandles.java
+ test/java/lang/invoke/CallStaticInitOrder.java

Changeset: eb3cfc69c16e
Author:    jrose
Date:      2013-10-05 05:30 -0700
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/eb3cfc69c16e

8001110: method handles should have a collectArguments transform, generalizing asCollector
Summary: promote an existing private method; make unit tests on all argument positions to arity 10 with mixed types
Reviewed-by: twisti, vlivanov

! src/share/classes/java/lang/invoke/MethodHandles.java
! src/share/classes/sun/invoke/util/ValueConversions.java
! test/java/lang/invoke/JavaDocExamplesTest.java
! test/java/lang/invoke/MethodHandlesTest.java

Changeset: b670477bff8f
Author:    jrose
Date:      2013-10-05 05:30 -0700
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/b670477bff8f

8025112: JSR 292 spec updates for security manager and caller sensitivity
Summary: align CONSTANT_MethodHandle and Lookup.find* API calls, clarify security manager & @CallerSensitive interactions
Reviewed-by: mchung, twisti

! src/share/classes/java/lang/invoke/MethodHandle.java
! src/share/classes/java/lang/invoke/MethodHandleImpl.java
! src/share/classes/java/lang/invoke/MethodHandleInfo.java
! src/share/classes/java/lang/invoke/MethodHandleProxies.java
! src/share/classes/java/lang/invoke/MethodHandles.java
! test/java/lang/invoke/TestPrivateMember.java

Changeset: 6623c675e734
Author:    jrose
Date:      2013-10-05 05:30 -0700
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/6623c675e734

8024438: JSR 292 API specification maintenance for JDK 8
Summary: add wildcard to unreflectConstructor, various clarifications and minor edits
Reviewed-by: mchung, darcy, twisti

! src/share/classes/java/lang/invoke/BoundMethodHandle.java
! src/share/classes/java/lang/invoke/CallSite.java
! src/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java
! src/share/classes/java/lang/invoke/LambdaForm.java
! src/share/classes/java/lang/invoke/MethodHandle.java
! src/share/classes/java/lang/invoke/MethodHandleInfo.java
! src/share/classes/java/lang/invoke/MethodHandles.java
! src/share/classes/java/lang/invoke/MethodType.java
! src/share/classes/java/lang/invoke/MutableCallSite.java
! src/share/classes/java/lang/invoke/SwitchPoint.java
! src/share/classes/sun/invoke/WrapperInstance.java
! src/share/classes/sun/invoke/util/VerifyAccess.java
! src/share/classes/sun/invoke/util/VerifyType.java
! test/java/lang/invoke/AccessControlTest.java
! test/java/lang/invoke/MethodHandlesTest.java
! test/java/lang/invoke/RevealDirectTest.java




More information about the security-dev mailing list