Skip to content
Permalink
Browse files

8244328: Shenandoah: move ShenandoahThreadLocalData::_disarmed_value …

…initialization

Reviewed-by: shade
  • Loading branch information
zhengyu123 committed May 4, 2020
1 parent cbfcae7 commit 2d8bea8c1d08e1ae5234c8e0af214e32757e2021
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/hotspot/share/gc/shenandoah/shenandoahThreadLocalData.hpp
@@ -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() {
@@ -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) {

0 comments on commit 2d8bea8

Please sign in to comment.