[9] RFR (M): 8050877: Improve code for pairwise argument conversions and value boxing/unboxing (original) (raw)

Vladimir Ivanov vladimir.x.ivanov at oracle.com
Wed Jul 16 16:28:26 UTC 2014


http://cr.openjdk.java.net/~vlivanov/8050877/webrev.00/ https://bugs.openjdk.java.net/browse/JDK-8050877

Improved MethodHandleImpl.makePairwiseConvert & ValueConversions.unbox and small cleanups in related code.

Also, improved method handle caching in ValueConversions.

MethodHandleImpl.makePairwiseConvert:

false, explicitCastArguments conversions allowed

exactly typed (Integer to int only, not long or double)

ValueConversions.unbox:

widening conversions with NPE

conversions, zero for null

Testing: jdk/java/lang/invoke, jdk/java/util/streams, nashorn, octane w/ "-ea -esa" and COMPILE_THRESHOLD={0,30}.

Reviewed-by: vlivanov, ? Contributed-by: john.r.rose at oracle.com

Thanks!

Best regards, Vladimir Ivanov



More information about the core-libs-dev mailing list