RFR (S): 8033666: Make sure @ForceInline is everywhere it needs to be in sun.misc and java.lang.invoke

2014-02-25 Thread Vladimir Ivanov
http://cr.openjdk.java.net/~vlivanov/8033666/webrev.01/ https://bugs.openjdk.java.net/browse/JDK-8033666 ValueConversions::castReference was introduced to workaround a problem with unreliable inlining of Class::cast method. Unfortunately, since ValueConversions class is located in

Re: RFR (S): 8033666: Make sure @ForceInline is everywhere it needs to be in sun.misc and java.lang.invoke

2014-02-25 Thread John Rose
On Feb 25, 2014, at 4:16 PM, Vladimir Ivanov vladimir.x.iva...@oracle.com wrote: As an interim fix, I moved castReference method into java.lang.invoke.MethodHandleImpl class and added new entry point ValueConversions::cast which accepts a method handle to a method which should be used for