RFR (XXL): 8223347: Integration of Vector API (Incubator): General HotSpot changes

Remi Forax forax at univ-mlv.fr
Fri Apr 3 23:31:11 UTC 2020


[...]

> (4)
> http://cr.openjdk.java.net/~vlivanov/panama/vector/jep338/hotspot.shared/webrev.00/03.module.hotspot/
> 
> HotSpot changes for jdk.incubator.vector module. Vector support is
> makred experimental and turned off by default. JEP 338 proposes the API
> to be released as an incubator module, so a user has to specify
> "--add-module jdk.incubator.vector" on the command line to be able to
> use it.

Typo, it's --add-modules

> When user does that, JVM automatically enables Vector API support.
> It improves usability (user doesn't need to separately "open" the API
> and enable JVM support) while minimizing risks of destabilitzation from
> new code when the API is not used.

Question, what if i declare a module-info that requires "jdk.incubator.vector", because in that case, i don't have to add --add-modules jdk.incubator.vector on the command line, but does the VM will enable the Vector API support ?

> 
> 
> That's it! Will be happy to answer any questions.
> 
> And thanks in advance for any feedback!

regards,
Rémi

> 
> Best regards,
> Vladimir Ivanov
> 
> [0]
> https://mail.openjdk.java.net/pipermail/core-libs-dev/2020-March/065345.html
> 
> [1]
> https://mail.openjdk.java.net/pipermail/hotspot-dev/2020-April/041228.html
> 
> [2] https://openjdk.java.net/jeps/338
> 
> [3] https://openjdk.java.net/projects/panama/
> 
> [4]
> http://cr.openjdk.java.net/~vlivanov/panama/vector/jep338/hotspot.shared/webrev.00/01.intrinsics/src/java.base/share/classes/jdk/internal/vm/vector/VectorSupport.java.html
> 
> [5] http://cr.openjdk.java.net/~vlivanov/talks/2018_JVMLS_VectorAPI.pdf
> 
> [6] http://hg.openjdk.java.net/panama/dev/shortlog/92bbd44386e9
> 
>      $ hg clone http://hg.openjdk.java.net/panama/dev/ -b vector-unstable


More information about the panama-dev mailing list