Skip to content

Commit 22f94dc

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

jdk/src/solaris/bin/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

@@ -393,6 +393,11 @@ CreateExecutionEnvironment(int *pargc, char ***pargv,
393393
if (setenv(mallocOptionsName, mallocOptionsValue, 0) != 0) {
394394
fprintf(stderr, "setenv('MALLOCOPTIONS=multiheap,considersize') failed: performance may be affected\n");
395395
}
396+
const char * ldrCntrlName = "LDR_CNTRL";
397+
const char *ldrCntrlValue = "TEXTPSIZE=64K@DATAPSIZE=64K@STACKPSIZE=64K@SHMPSIZE=64K";
398+
if (setenv(ldrCntrlName, ldrCntrlValue, 0) != 0) {
399+
fprintf(stderr, "setenv('LDR_CNTRL=TEXTPSIZE=64K@DATAPSIZE=64K@STACKPSIZE=64K@SHMPSIZE=64K') failed: performance may be affected\n");
400+
}
396401
#endif
397402
#ifdef SETENV_REQUIRED
398403
jboolean mustsetenv = JNI_FALSE;

0 commit comments

Comments
 (0)