RFR JDK-8181425: Reflection API defend against issues with internal VM derived value type

Tobias Hartmann tobias.hartmann at oracle.com
Mon Jun 26 13:54:02 UTC 2017

Hi Mandy,

On 24.06.2017 00:49, Mandy Chung wrote:
> I add a property “jdk.lang.reflect.DVT” to allow reflection on DVT,
> as Maurizio suggests.  When ValueTypeTestBench.java is converted to
> use VCC/DVT and do reflection on VCC, we should remove this property.

That looks good to me.

> This attempts to load DVT array class.  Can the test use ValueType::arrayValueClass?  I comment out testClassForName test case.
> Do you mind updating the test to use ValueType::arrayValueClass instead?

I think the runtime folks should look at this because they own that test but I'm fine with temporarily disabling this part.

> Another workaround is to check for ACC_VALUE for now and avoid
> calling isAssignableFrom until this issue is fixed.

Okay, thanks. The C2 fix for the intrinsic is non-trivial. I'll file a separate bug and will add a regression test with the fix.

Best regards,

More information about the valhalla-dev mailing list