Skip to content

Commit 948ade8

Browse files
author
Yudi Zheng
committed
8356971: [JVMCI] Export VM_Version::supports_avx512_simd_sort to JVMCI compiler
Reviewed-by: dnsimon
1 parent ecabea6 commit 948ade8

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/hotspot/share/jvmci/jvmciCompilerToVM.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ class CompilerToVM {
118118

119119
#ifdef X86
120120
static int L1_line_size;
121+
static bool supports_avx512_simd_sort;
121122
#endif
122123

123124
static address dsin;

src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ int CompilerToVM::Data::cardtable_shift;
125125

126126
#ifdef X86
127127
int CompilerToVM::Data::L1_line_size;
128+
bool CompilerToVM::Data::supports_avx512_simd_sort;
128129
#endif
129130

130131
size_t CompilerToVM::Data::vm_page_size;
@@ -256,6 +257,7 @@ void CompilerToVM::Data::initialize(JVMCI_TRAPS) {
256257

257258
#ifdef X86
258259
L1_line_size = VM_Version::L1_line_size();
260+
supports_avx512_simd_sort = VM_Version::supports_avx512_simd_sort();
259261
#endif
260262

261263
vm_page_size = os::vm_page_size();

src/hotspot/share/jvmci/vmStructs_jvmci.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
static_field(CompilerToVM::Data, cardtable_shift, int) \
123123
\
124124
X86_ONLY(static_field(CompilerToVM::Data, L1_line_size, int)) \
125+
X86_ONLY(static_field(CompilerToVM::Data, supports_avx512_simd_sort, bool)) \
125126
\
126127
static_field(CompilerToVM::Data, vm_page_size, size_t) \
127128
\

0 commit comments

Comments
 (0)