Skip to content

Commit bfdafb7

Browse files
committed
8356266: Fix non-Shenandoah build after JDK-8356075
Reviewed-by: dnsimon, shade
1 parent ddd07b1 commit bfdafb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,11 @@ void CompilerToVM::Data::initialize(JVMCI_TRAPS) {
236236
assert(base != nullptr, "unexpected byte_map_base");
237237
cardtable_start_address = base;
238238
cardtable_shift = CardTable::card_shift();
239+
#if INCLUDE_SHENANDOAHGC
239240
} else if (bs->is_a(BarrierSet::ShenandoahBarrierSet)) {
240241
cardtable_start_address = nullptr;
241242
cardtable_shift = CardTable::card_shift();
243+
#endif
242244
} else {
243245
// No card mark barriers
244246
cardtable_start_address = nullptr;

0 commit comments

Comments
 (0)