Skip to content

Conversation

@amicic
Copy link
Contributor

@amicic amicic commented Jan 30, 2025

In a rare scenario, if a user specifies max GC thread count above h/w
available thread count, adaptive threading math would incorrectly
disregard the current h/w thread count.

This fix makes adaptive threading math apply its logic on top of
taskActiveThreadCount rather than _threadCount. It is more correct since
the former not already accounts for the latter (_threadCount, what is
currently spawned count of GC threads) but also
accounts for _activeThreadCount which in turn has been adjusted to
account of the number of h/w available threads.

@amicic amicic force-pushed the gcthreads_adaptive_fix branch from 41fb58a to aecee8d Compare January 30, 2025 21:03
In a rare scenario, if a user specifies max GC thread count above h/w
available thread count, adaptive threading math would incorrectly
disregard the current h/w thread count.

This fix makes adaptive threading math apply its logic on top of
taskActiveThreadCount rather than _threadCount. It is more correct since
the former not already accounts for the latter (_threadCount, what is
currently spawned count of GC threads) but also
accounts for _activeThreadCount which in turn has been adjusted to
account of the number of h/w available threads.

Signed-off-by: Aleksandar Micic <Aleksandar_Micic@ca.ibm.com>
@amicic amicic force-pushed the gcthreads_adaptive_fix branch from aecee8d to 100f70f Compare January 30, 2025 21:08
@amicic
Copy link
Contributor Author

amicic commented Jan 30, 2025

@dmitripivkine please, review (and suggest what to test)

@dmitripivkine
Copy link
Contributor

dmitripivkine commented Jan 30, 2025

@dmitripivkine please, review (and suggest what to test)

I don't think we can get this scenario in testing, and even we can we are not going to be noticed. I think general sanity testing should be sufficient.
@babsingh Would you please help to merge this?

@babsingh
Copy link
Contributor

jenkins build all

@babsingh babsingh merged commit 8afd5c6 into eclipse-omr:master Jan 31, 2025
13 checks passed
@amicic amicic added the comp:gc label Mar 17, 2025
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