Skip to content
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

Set gcThreadCountSpecified and allow -Xgcmaxthreads for restore VM #18646

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

amicic
Copy link
Contributor

@amicic amicic commented Dec 18, 2023

Set gcThreadCountSpecified if either -Xgcthreads or -Xgcmaxthreads is specified, and use gcThreadCountForced to distinguish between the 2 options. This is a part of the fix that will allow -Xgcmaxthreads to work as expected (another OMR change is needed to make use of now properly set gcThreadCountSpecified flag).

Aslo, allow -Xgcmaxthreads to be specified on restore VM too, and make sure that whichever is the last one wins (in any combination of those 2 options being or not beign specified on snapshot or restore side). Parsing of -Xgcmaxthreads handles it, since it's the latter one that gets processed in the code.

There is also a change in behavior for restore VM. Previosly, if -Xgcthreads was specified on snapshot side, it would be ignored on restore side and the thread count would be recalculated from scratch. Now, if that option (or gcmaxthreads variant) is specified on snapshot side it will obeyed on restore side. Of course if restore side specifies any of the 2 options that will override the snapshot value. That was true before and still true, except that the value will possible to override by either gcthreads or (once fully working) gcmaxthreads variant.

Set gcThreadCountSpecified if either -Xgcthreads or -Xgcmaxthreads is
specified, and use gcThreadCountForced to distinguish between the 2
options. This is a part of the fix that will allow -Xgcmaxthreads to
work as expected (another OMR change is needed to make use of now
properly set gcThreadCountSpecified flag).

Aslo, allow -Xgcmaxthreads to be specified on restore VM too, and make
sure that whichever is the last one wins (in any combination of those 2
options being or not beign specified on snapshot or restore side).
Parsing of -Xgcmaxthreads handles it, since it's the latter one that
gets processed in the code.

There is also a change in behavior for restore VM. Previosly, if
-Xgcthreads was specified on snapshot side, it would be ignored on
restore side and the thread count would be recalculated from scratch.
Now, if that option (or gcmaxthreads variant) is specified on snapshot
side it will obeyed on restore side. Of course if restore side specifies
any of the 2 options that will override the snapshot value. That was
true before and still true, except that the value will possible to
override by either gcthreads or (once fully working) gcmaxthreads
variant.

Signed-off-by: Aleksandar Micic <[email protected]>
@dmitripivkine
Copy link
Contributor

jenkins test sanity xmac jdk21

@dmitripivkine dmitripivkine merged commit 316f2a9 into eclipse-openj9:master Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants