RFR: 8259580: Shenandoah: uninitialized label in VerifyThreadGCState

Roman Kennke rkennke at openjdk.java.net
Wed Jan 13 11:52:58 UTC 2021


On Wed, 13 Jan 2021 07:39:06 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> src/hotspot/share/gc/shenandoah/shenandoahVerifier.cpp line 606:
>> 
>>> 604: private:
>>> 605:   const char* const _label;
>>> 606:          char const _expected;
>> 
>> Why can't _expected not be const char* const too? Are we really messing with the string on the way?
>
> @rkennke Still good with this explanation?

Yes, thank you! Stupid me overlooked the missing * :-)

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

PR: https://git.openjdk.java.net/jdk/pull/2033


More information about the shenandoah-dev mailing list