Skip to content

Commit

Permalink
Make sure that we only allocate 4k pages
Browse files Browse the repository at this point in the history
Co-authored-by: Tobi Ajila <[email protected]>
Signed-off-by: Amarpreet Singh <[email protected]>
  • Loading branch information
singh264 and tajila committed Jun 24, 2024
1 parent df33ce1 commit 44ab9d9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions port/common/omrmem32helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,11 @@ allocateVmemRegion32(struct OMRPortLibrary *portLibrary, uintptr_t byteAmount, J
}

/* use a minimum 4K page size */
if (pageSize < 0x1000) {
pageSize = 0x1000;
}
// if (pageSize < 0x1000) {
// pageSize = 0x1000;
// }
/* Make sure that we only allocate 4k pages. */
pageSize = 0x1000;

#if defined(LINUX)
if (OMR_ARE_ALL_BITS_SET(PPG_mem32BitFlags, OMRPORT_MEM_32BIT_FLAGS_TMP_FILE_BACKED_VMEM)) {
Expand Down

0 comments on commit 44ab9d9

Please sign in to comment.