8263861: Shenandoah: Remove unused member in ShenandoahGCStateResetter

Reviewed-by: shade
This commit is contained in:
Zhengyu Gu 2021-03-22 13:51:52 +00:00
parent 5262d95b12
commit 6c2220e65d
2 changed files with 2 additions and 4 deletions

View File

@ -43,8 +43,7 @@
ShenandoahGCStateResetter::ShenandoahGCStateResetter() :
_heap(ShenandoahHeap::heap()),
_gc_state(_heap->gc_state()),
_concurrent_weak_root_in_progress(ShenandoahHeap::heap()->is_concurrent_weak_root_in_progress()) {
_gc_state(_heap->gc_state()) {
_heap->_gc_state.clear();
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2020, Red Hat, Inc. All rights reserved.
* Copyright (c) 2019, 2021, Red Hat, Inc. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -32,7 +32,6 @@ class ShenandoahGCStateResetter : public StackObj {
private:
ShenandoahHeap* const _heap;
const char _gc_state;
const bool _concurrent_weak_root_in_progress;
public:
ShenandoahGCStateResetter();