-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor access to VM options and move some VM options to oal.util.Constants #12754
Conversation
…so in PanamaVectorUtilSupport); move detection of Client VM and fast FMA support to Constants
public static final boolean HAS_FAST_FMA = | ||
(IS_CLIENT_VM == false) | ||
&& Constants.OS_ARCH.equals("amd64") | ||
&& HotspotVMOptions.get("UseFMA").map(Boolean::valueOf).orElse(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update this with the current logic in the other branch? With the newer Neoverse cores that support SVE, they "fixed" their FMA to be fast, so we turn it on there too. It is a good exercise as well since it must check integer parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine with both. I just used here the code as is on current main branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, that makes sense. sorry i've been working off the other branch as a baseline for a while.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will merge it to your branch once merged to main/9.x
Hi @rmuir , |
I fixed a regression with OpenJ9 in 5358b72. |
This code was previously in
RamUsageEstimator
and also inPanamaVectorUtilSupport
.In addition this moves detection of Client VM and fast FMA support to
Constants
class (in preparation for #12737).