Skip to content

Commit

Permalink
8244328: Shenandoah: move ShenandoahThreadLocalData::_disarmed_value …
Browse files Browse the repository at this point in the history
…initialization

Reviewed-by: shade
  • Loading branch information
zhengyu123 committed May 4, 2020
1 parent cbfcae7 commit 2d8bea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/gc/shenandoah/shenandoahThreadLocalData.hpp
Expand Up @@ -54,7 +54,8 @@ class ShenandoahThreadLocalData {
_gclab(NULL),
_gclab_size(0),
_worker_id(INVALID_WORKER_ID),
_force_satb_flush(false) {
_force_satb_flush(false),
_disarmed_value(ShenandoahCodeRoots::disarmed_value()) {
}

~ShenandoahThreadLocalData() {
Expand Down Expand Up @@ -128,7 +129,6 @@ class ShenandoahThreadLocalData {
assert(data(thread)->_gclab == NULL, "Only initialize once");
data(thread)->_gclab = new PLAB(PLAB::min_size());
data(thread)->_gclab_size = 0;
data(thread)->_disarmed_value = ShenandoahCodeRoots::disarmed_value();
}

static PLAB* gclab(Thread* thread) {
Expand Down

0 comments on commit 2d8bea8

Please sign in to comment.