Skip to content

Commit

Permalink
Set env var MALLOCOPTIONS=multiheap,considersize on AIX
Browse files Browse the repository at this point in the history
The previous setting `MALLOCOPTIONS=multiheap` uses too much memory in
some cases.

Issue eclipse-openj9/openj9#8842

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
  • Loading branch information
pshipton committed Apr 7, 2020
1 parent f782557 commit 21f7e0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java.base/unix/native/libjli/java_md_solinux.c
Expand Up @@ -310,9 +310,9 @@ CreateExecutionEnvironment(int *pargc, char ***pargv,

#ifdef AIX
const char *mallocOptionsName = "MALLOCOPTIONS";
const char *mallocOptionsValue = "multiheap";
const char *mallocOptionsValue = "multiheap,considersize";
if (setenv(mallocOptionsName, mallocOptionsValue, 0) != 0) {
fprintf(stderr, "setenv('MALLOCOPTIONS=multiheap') failed: performance may be affected\n");
fprintf(stderr, "setenv('MALLOCOPTIONS=multiheap,considersize') failed: performance may be affected\n");
}
#endif

Expand Down

0 comments on commit 21f7e0f

Please sign in to comment.