Skip to content

Commit 82d7bc5

Browse files
Tyler Steeleshipilev
Tyler Steele
authored andcommittedAug 24, 2023
8312180: (bf) MappedMemoryUtils passes incorrect arguments to msync (aix)
Backport-of: fdac6a6ac871366614efe44aca58ab520766b5c8
1 parent c17b5d7 commit 82d7bc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/hotspot/share/classfile/javaClasses.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
#include "runtime/vframe.inline.hpp"
8787
#include "runtime/vm_version.hpp"
8888
#include "utilities/align.hpp"
89+
#include "utilities/globalDefinitions.hpp"
8990
#include "utilities/growableArray.hpp"
9091
#include "utilities/preserveException.hpp"
9192
#include "utilities/utf8.hpp"
@@ -4725,7 +4726,7 @@ class UnsafeConstantsFixup : public FieldClosure {
47254726
UnsafeConstantsFixup() {
47264727
// round up values for all static final fields
47274728
_address_size = sizeof(void*);
4728-
_page_size = (int)os::vm_page_size();
4729+
_page_size = AIX_ONLY(sysconf(_SC_PAGESIZE)) NOT_AIX((int)os::vm_page_size());
47294730
_big_endian = LITTLE_ENDIAN_ONLY(false) BIG_ENDIAN_ONLY(true);
47304731
_use_unaligned_access = UseUnalignedAccesses;
47314732
_data_cache_line_flush_size = (int)VM_Version::data_cache_line_flush_size();

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Aug 24, 2023

@openjdk-notifier[bot]
Please sign in to comment.