Skip to content

Commit

Permalink
8330813: Don't call methods from Compressed(Oops|Klass) if the associ…
Browse files Browse the repository at this point in the history
…ated mode is inactive

Reviewed-by: stefank, asmehra
  • Loading branch information
tstuefe committed May 2, 2024
1 parent 389f6fe commit dd0b641
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,20 @@ void CompilerToVM::Data::initialize(JVMCI_TRAPS) {

Universe_collectedHeap = Universe::heap();
Universe_base_vtable_size = Universe::base_vtable_size();
Universe_narrow_oop_base = CompressedOops::base();
Universe_narrow_oop_shift = CompressedOops::shift();
Universe_narrow_klass_base = CompressedKlassPointers::base();
Universe_narrow_klass_shift = CompressedKlassPointers::shift();
if (UseCompressedOops) {
Universe_narrow_oop_base = CompressedOops::base();
Universe_narrow_oop_shift = CompressedOops::shift();
} else {
Universe_narrow_oop_base = nullptr;
Universe_narrow_oop_shift = 0;
}
if (UseCompressedClassPointers) {
Universe_narrow_klass_base = CompressedKlassPointers::base();
Universe_narrow_klass_shift = CompressedKlassPointers::shift();
} else {
Universe_narrow_klass_base = nullptr;
Universe_narrow_klass_shift = 0;
}
Universe_non_oop_bits = Universe::non_oop_word();
Universe_verify_oop_mask = Universe::verify_oop_mask();
Universe_verify_oop_bits = Universe::verify_oop_bits();
Expand Down

0 comments on commit dd0b641

Please sign in to comment.