Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/hotspot/share/jvmci/jvmciCompilerToVM.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ class CompilerToVM {
static int sizeof_ZStoreBarrierEntry;
#endif

#ifdef X86
static int L1_line_size;
#endif

static address dsin;
static address dcos;
static address dtan;
Expand Down
8 changes: 8 additions & 0 deletions src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ int CompilerToVM::Data::_fields_annotations_base_offset;
CardTable::CardValue* CompilerToVM::Data::cardtable_start_address;
int CompilerToVM::Data::cardtable_shift;

#ifdef X86
int CompilerToVM::Data::L1_line_size;
#endif

size_t CompilerToVM::Data::vm_page_size;

int CompilerToVM::Data::sizeof_vtableEntry = sizeof(vtableEntry);
Expand Down Expand Up @@ -240,6 +244,10 @@ void CompilerToVM::Data::initialize(JVMCI_TRAPS) {
cardtable_shift = 0;
}

#ifdef X86
L1_line_size = VM_Version::L1_line_size();
#endif

vm_page_size = os::vm_page_size();

#define SET_TRIGFUNC(name) \
Expand Down
2 changes: 2 additions & 0 deletions src/hotspot/share/jvmci/vmStructs_jvmci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@
static_field(CompilerToVM::Data, cardtable_start_address, CardTable::CardValue*) \
static_field(CompilerToVM::Data, cardtable_shift, int) \
\
X86_ONLY(static_field(CompilerToVM::Data, L1_line_size, int)) \
\
static_field(CompilerToVM::Data, vm_page_size, size_t) \
\
static_field(CompilerToVM::Data, sizeof_vtableEntry, int) \
Expand Down