8389588: [s390x] Zero build is broken after JDK-8388561

This commit is contained in:
Vladimir Petko 2026-08-03 10:35:33 +12:00
parent 5b2d6991a1
commit 3b3ec9ad14
No known key found for this signature in database
GPG Key ID: F63B668A969B07C0
2 changed files with 7 additions and 6 deletions

View File

@ -478,9 +478,3 @@ int os::extra_bang_size_in_bytes() {
void os::setup_fpu() {}
uintptr_t os::vm_page_table_expansion_point() {
// On s390x, page table will dynamically expand based on user demand
// (eg mmap probing with high addresses). First expansion happens
// at 2^42 (4TB).
return nth_bit<uintptr_t>(42);
}

View File

@ -1999,6 +1999,13 @@ static void shuffle_fisher_yates(T* arr, unsigned num, FastRandom& frand) {
uintptr_t os::vm_page_table_expansion_point() {
return align_down(UINTPTR_MAX, os::vm_allocation_granularity());
}
#else
uintptr_t os::vm_page_table_expansion_point() {
// On s390x, page table will dynamically expand based on user demand
// (eg mmap probing with high addresses). First expansion happens
// at 2^42 (4TB).
return nth_bit<uintptr_t>(42);
}
#endif
// Helper for os::attempt_reserve_memory_between