8259580: Shenandoah: uninitialized label in VerifyThreadGCState

Reviewed-by: zgu, rkennke
This commit is contained in:
Aleksey Shipilev 2021-01-13 11:55:45 +00:00
parent 77ca1031a0
commit 2e124544e6

View File

@ -602,11 +602,11 @@ public:
class VerifyThreadGCState : public ThreadClosure {
private:
const char* _label;
char _expected;
const char* const _label;
char const _expected;
public:
VerifyThreadGCState(const char* label, char expected) : _expected(expected) {}
VerifyThreadGCState(const char* label, char expected) : _label(label), _expected(expected) {}
void do_thread(Thread* t) {
char actual = ShenandoahThreadLocalData::gc_state(t);
if (actual != _expected) {