8335532: [JVMCI] Export VM_Version::L1_line_size in JVMCI

Reviewed-by: dnsimon
This commit is contained in:
Yudi Zheng 2024-07-04 10:34:56 +00:00
parent c0604fb823
commit 916db07e53
3 changed files with 14 additions and 0 deletions

View File

@ -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;

View File

@ -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);
@ -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) \

View File

@ -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) \