mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8335532: [JVMCI] Export VM_Version::L1_line_size in JVMCI
Reviewed-by: dnsimon
This commit is contained in:
parent
c0604fb823
commit
916db07e53
@ -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;
|
||||
|
||||
@ -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) \
|
||||
|
||||
@ -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) \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user