[crac] RFR: RFC: -XX:CPUFeatures=0xnumber for CPU migration [v2]

Ashutosh Mehra duke at openjdk.org
Fri Feb 10 14:15:18 UTC 2023


On Fri, 10 Feb 2023 12:40:06 GMT, Anton Kozlov <akozlov at openjdk.org> wrote:

> so are you proposing -XX:+PortableCode to change default CPU features to some conservative set, that still can be extended by existing Hotpost options?

That's right.

> even for CPUFeatures we may want values like generic, native (again, in gcc terms)

Yes, something like CPUFeatures=generic would serve the same purpose as PortableCode.  IMO adding something like `-XX:CPUFeatures=[generic|native]` or `-XX:[+-]PortableCode` is more appropriate. To enable/disable extended instruction sets, hotspot already has options (like UseSSE). Combining those options with `CPUFeatures=[generic|native]` or `PortableCode` would provide an easier way for the user to control the cpu features that hotspot should use.

-------------

PR: https://git.openjdk.org/crac/pull/41


More information about the crac-dev mailing list