Skip to content

Commit a723cd0

Browse files
Morgan DaviesMorgan Davies
authored andcommitted
Set base text/data load address on aix
Set the load address for 64 bit aix to 0x100,0000,0000 (1TB) for launchers. This ensures that the text/data segment is out of the way of compressed heap allocation. Signed-off-by: Morgan Davies <morgan.davies@ibm.com>
1 parent ffbfebb commit a723cd0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

make/launcher/LauncherCommon.gmk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ define SetupBuildLauncherBody
9696
endif
9797
endif
9898

99+
# Set text/data load address for 64 bit aix to 0x100,0000,0000 (1TB) for launchers,
100+
# ensures that it's out of the way of compressed heap allocation.
101+
ifeq ($(OPENJDK_TARGET_OS), aix)
102+
ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
103+
$1_LDFLAGS += -bmaxdata:0xa0000000/dsa
104+
else
105+
$1_LDFLAGS += -bpT:0x10000000000
106+
endif
107+
endif
108+
99109
ifeq ($$($1_OPTIMIZATION), )
100110
$1_OPTIMIZATION := LOW
101111
endif

0 commit comments

Comments
 (0)