Skip to content

Commit 97bc4ee

Browse files
committed
Use LDR_CNTRL on AIX to use 64KB pages
Signed-off-by: Abdulrahman Alattas <[email protected]>
1 parent f0a7818 commit 97bc4ee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/java.base/unix/native/libjli/java_md_solinux.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
/*
2727
* ===========================================================================
28-
* (c) Copyright IBM Corp. 2020, 2023 All Rights Reserved
28+
* (c) Copyright IBM Corp. 2020, 2024 All Rights Reserved
2929
* ===========================================================================
3030
*/
3131

@@ -322,6 +322,11 @@ CreateExecutionEnvironment(int *pargc, char ***pargv,
322322
if (setenv(mallocOptionsName, mallocOptionsValue, 0) != 0) {
323323
fprintf(stderr, "setenv('MALLOCOPTIONS=multiheap,considersize') failed: performance may be affected\n");
324324
}
325+
const char * ldrCntrlName = "LDR_CNTRL";
326+
const char *ldrCntrlValue = "TEXTPSIZE=64K@DATAPSIZE=64K@STACKPSIZE=64K@SHMPSIZE=64K";
327+
if (setenv(ldrCntrlName, ldrCntrlValue, 0) != 0) {
328+
fprintf(stderr, "setenv('LDR_CNTRL=TEXTPSIZE=64K@DATAPSIZE=64K@STACKPSIZE=64K@SHMPSIZE=64K') failed: performance may be affected\n");
329+
}
325330
#endif
326331

327332
#ifdef SETENV_REQUIRED

0 commit comments

Comments
 (0)