RFR: 8349094: GenShen: Race between control and regulator threads may violate assertions [v12]

William Kemper wkemper at openjdk.org
Mon Feb 24 17:55:57 UTC 2025


On Sat, 15 Feb 2025 00:05:46 GMT, Y. Srinivas Ramakrishna <ysr at openjdk.org> wrote:

>> William Kemper has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 30 commits:
>> 
>>  - Merge remote-tracking branch 'jdk/master' into fix-control-regulator-threads
>>  - Old gen bootstrap cycle must make it to init mark
>>  - Merge remote-tracking branch 'jdk/master' into fix-control-regulator-threads
>>  - Improve message for assertion
>>  - Make shutdown safer for threads requesting (or expecting) gc
>>  - Do not accept requests if control thread is terminating
>>  - Notify waiters when control thread terminates
>>  - Add event for control thread state changes
>>  - Fix shutdown livelock error
>>  - Fix includes
>>  - ... and 20 more: https://git.openjdk.org/jdk/compare/ba6c9659...915ffbda
>
> src/hotspot/share/gc/shenandoah/shenandoahController.hpp line 66:
> 
>> 64: 
>> 65:   // This cancels the collection cycle and has an option to block
>> 66:   // until another cycle runs and clears the alloc failure gc flag.
> 
> But "the alloc failure gc flag" is gone above. The comment should be updated as well. A public API's description should avoid talking about its internal implementation details here. It's OK to talk about implementation details in the implementation of the method, not in the header spec here.

Fixed.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23475#discussion_r1968135382


More information about the shenandoah-dev mailing list