RFR(S): 8187679: [MVT] VM crashes with "assert(k != __null && !(((ThreadShadow*)__the_thread__)->has_pending_exception())) failed: can resolve klass?"
frederic.parain at oracle.com
Wed Sep 20 13:52:23 UTC 2017
Looks good to me.
Note: ValueTypePassFieldsAsArgs and ValueTypeReturnedAsFields are true by
default, should they only be true if the VM is not running in interpreted only mode?
(May be a change for a different CR).
> On Sep 20, 2017, at 09:46, Tobias Hartmann <tobias.hartmann at oracle.com> wrote:
> please review the following patch:
> With -XX:+ValueTypePassFieldsAsArgs (which is the default), we need to resolve all value type arguments when generating adapters for a method to collect the field types. If the klass cannot be resolved, we currently fail with an assert or crash in product.
> If klass lookup during adapter generation fails, we should pass the exception up and exit with a ClassNotFoundException.
> All tests pass.
More information about the valhalla-dev