Currently the only way to check in shared code if a platform supports intrinsic is to add new flag which is set in platform specific code based on CPU instructions set. And we have "ton" of such global flags already in globals.hpp
JDK-8303415 added new VM_Version API which can be used instead.
And we have -XX:DisableIntrinsic=<id> and -XX:ControlIntrinsic=<id> VM flags to control intrinsics from command line.
And we have -XX:DisableIntrinsic=<id> and -XX:ControlIntrinsic=<id> VM flags to control intrinsics from command line.
- relates to
-
JDK-8303415 Add VM_Version::is_intrinsic_supported(id)
-
- Resolved
-