Move Vector API from scratch project to an incubator module
paul.sandoz at oracle.com
Thu Sep 14 18:50:31 UTC 2017
The vector intrinsics work is making some good progress.
I propose to move the Vector API from jdk/test/panama/vector-draft-spec to its own module in the JDK named jdk.incubator.vector with classes under a package of the same name. That way an OpenJDK ea distribution of panama will include the Vector API and developers can easily experiment.
One awkward aspect is @HotSpotIntrinsicCandidate is internal to the JDK and only usable in java.base. We can export it’s package to the jdk.incubator.vector module and IIUC ensure classes in the vector module are loaded by the platform class loader, thus annotated methods that are intrinsic are acknowledged.
(Ideally HotSpotIntrinsicCandidate should reside in the package jdk.internal.vm.annotation.)
More information about the panama-dev