mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-20 23:36:18 +00:00
8259580: Shenandoah: uninitialized label in VerifyThreadGCState
Reviewed-by: zgu, rkennke
This commit is contained in:
parent
77ca1031a0
commit
2e124544e6
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user