[vector] RFR (M): Ensure intrinsics are parameterized with non-capturing lambdas
Vladimir Ivanov
vladimir.x.ivanov at oracle.com
Wed Feb 20 22:32:04 UTC 2019
http://cr.openjdk.java.net/~vlivanov/panama/vector/intrin.non_capturing/webrev.00/
Default implementations are implemented as lambdas and capturing
introduces problems for EA and even if intrinsification happens may
leave unused objects behind.
The patch:
* introduces an adhoc check (VectorIntrinsics.isNonCapturingLambda())
and asserts all default implementations satisfy it;
* instruments existing tests to run with assertions enabled;
* fixes all occurrences of capturing lambdas in the code (so test
results are clean).
Best regards,
Vladimir Ivanov
More information about the panama-dev
mailing list