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

Use gcThreadCountSpecified #7212

Merged
merged 1 commit into from
Dec 19, 2023
Merged

Conversation

amicic
Copy link
Contributor

@amicic amicic commented Dec 19, 2023

Make use of newly introduced gcThreadCountSpecified flag so that when command line options (such as Java's -Xgcthreads or -Xgcmaxthreads) are specified, GC thread count overrides the default count calculation.

Old gcThreadCountForced flag is still used, butin ParallelDispatcher to distinguish between force/fixed or adaptive count of threads, bufore deciding how many threads to use for a ParallelTask.

Another change is that during the snapshot VM creation when thread count is reduced to checkpointGCthreadCount, we don't adjust GCExtensions gcThreadCount anymore (only ParallelDispatcher is affected). This is to be able to carry over the original count (from snapshot VM) to restore VM, so that options that specify that count can be obeyed even on restore side.

Make use of newly introduced gcThreadCountSpecified flag so that when
command line options (such as Java's -Xgcthreads or -Xgcmaxthreads) are
specified, GC thread count overrides the default count calculation.

Old gcThreadCountForced flag is still used, butin ParallelDispatcher to
distinguish between force/fixed or adaptive count of threads, bufore
deciding how many threads to use for a ParallelTask.

Another change is that during the snapshot VM creation when thread count
is reduced to checkpointGCthreadCount, we don't adjust GCExtensions
gcThreadCount anymore (only ParallelDispatcher is affected). This is to
be able to carry over the original count (from snapshot VM) to restore
VM, so that options that specify that count can be obeyed even on
restore side.
@amicic
Copy link
Contributor Author

amicic commented Dec 19, 2023

@dmitripivkine please, review

@amicic
Copy link
Contributor Author

amicic commented Dec 19, 2023

@babsingh please, review

@babsingh
Copy link
Contributor

jenkins build all

@babsingh
Copy link
Contributor

@babsingh babsingh merged commit 2067ba1 into eclipse-omr:master Dec 19, 2023
15 of 18 checks passed
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.

3 participants