RFR: 8344321: GenShen: Fix various sonar scan warnings

Y. Srinivas Ramakrishna ysr at openjdk.org
Tue Nov 19 21:08:55 UTC 2024


On Tue, 19 Nov 2024 18:19:47 GMT, William Kemper <wkemper at openjdk.org> wrote:

> Various sonar warnings are fixed: 
> * unused variables removed
> * implicit casts made explicit
> * members are all initialized

src/hotspot/share/gc/shenandoah/shenandoahEvacTracker.cpp line 37:

> 35:     _evacuations_attempted(0), _bytes_attempted(0),
> 36:     _use_age_table(ShenandoahGenerationalCensusAtEvac || !ShenandoahGenerationalAdaptiveTenuring),
> 37:     _age_table(nullptr) {

Good catch; thanks!

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

PR Review Comment: https://git.openjdk.org/shenandoah/pull/544#discussion_r1849054720


More information about the shenandoah-dev mailing list