RFR: [MVT] MethodHandlesTest fails with assertions enabled

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Mon Jul 24 16:14:08 UTC 2017


Hi,
this is a fix for a problem when running MethodHandlesTest with 
assertions enabled (-esa). Currently, bound method handles with value 
types are handled by encoding a bound value as a boxed value + unbox MH 
pair - but doing so breaks some arity invariants for BMHs. This makes 
the pair encoding explicit, by adding a small carrier class for the 
box/MH pair, which is then used to encode the bound value.

http://cr.openjdk.java.net/~mcimadamore/8185142-jdk/

Maurizio



More information about the valhalla-dev mailing list