Skip to content

Commit

Permalink
Set default load address for launchers on s390x
Browse files Browse the repository at this point in the history
Sets the load address of the launchers to 0x60000 on zlinux 64 systems. This enables compressed references with shift 0 for big heap sizes between 2040m and 4000m

Signed-off-by: Morgan Davies <morgan.davies@ibm.com>
  • Loading branch information
Morgan Davies authored and M-Davies committed Nov 15, 2019
1 parent f1c6c22 commit b8c74ec
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions jdk/make/CompileLaunchers.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ define SetupLauncher
endif

$1_LDFLAGS := $3

ifeq ($(OPENJDK_TARGET_OS), linux)
# Set the image base address for zLinux 64 to 0x60000 for launchers,
# allows compressedRefsShift to be 0 when -Xmx is set to 2040m or more.
# / RTC PR 100052
ifeq ($(OPENJDK_TARGET_CPU), s390x)
$1_LDFLAGS += -Wl,-Ttext-segment=0x60000
endif
endif

$1_LDFLAGS_SUFFIX :=
ifeq ($(OPENJDK_TARGET_OS), macosx)
$1_PLIST_FILE := Info-cmdline.plist
Expand Down

0 comments on commit b8c74ec

Please sign in to comment.