openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #13337
Bug#920315: openjdk-11: Please cherry-pick sparc64 optimization patch from openjdk-12
Source: openjdk-11
Version: 11.0.2+9-2
Severity: normal
Tags: patch
User: debian-sparc@xxxxxxxxxxxxxxxx
Usertags: sparc64
Hello!
Recent upstream changes to the openjdk-11 package have resulted in
Zero segfaulting on sparc64. This can be fixed by cherry-pick the
same fix that we are already using in openjdk-12 to address the
issue [1].
Please include the patch from [1] in the next openjdk-11 upload.
Thanks,
Adrian
> [1] https://git.launchpad.net/~openjdk/ubuntu/+source/openjdk/+git/openjdk/tree/debian/patches/Don-t-optimize-fdlibm-fork-for-Zero-on-linux-sparc-Z.patch
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@xxxxxxxxxx
`. `' Freie Universitaet Berlin - glaubitz@xxxxxxxxxxxxxxxxxxx
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
>From 7ce2609d6ff5299f2ed3ff6850a3cab4a16125f8 Mon Sep 17 00:00:00 2001
From: John Paul Adrian Glaubitz <glaubitz@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 21 Dec 2018 15:18:17 +0300
Subject: [PATCH] Don't optimize fdlibm-fork for Zero on linux-sparc (Zero)
---
make/hotspot/lib/JvmOverrideFiles.gmk | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/make/hotspot/lib/JvmOverrideFiles.gmk b/make/hotspot/lib/JvmOverrideFiles.gmk
index 7d45dd331a..79c014e82a 100644
--- a/make/hotspot/lib/JvmOverrideFiles.gmk
+++ b/make/hotspot/lib/JvmOverrideFiles.gmk
@@ -49,6 +49,15 @@ LIBJVM_FDLIBM_COPY_OPT_FLAG := $(CXX_O_FLAG_NONE)
# by using -ffp-contract=off on GCC/Clang platforms.
ifneq ($(FDLIBM_CFLAGS), )
LIBJVM_FDLIBM_COPY_OPT_FLAG := $(CXX_O_FLAG_NORM)
+ # Don't optimize fdlibm-fork for Zero on Linux sparc
+ # See JDK-XXXX
+ ifeq ($(call check-jvm-feature, zero), true)
+ ifeq ($(OPENJDK_TARGET_OS), linux)
+ ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc)
+ LIBJVM_FDLIBM_COPY_OPT_FLAG := $(CXX_O_FLAG_NONE)
+ endif
+ endif
+ endif
endif
ifeq ($(OPENJDK_TARGET_OS), linux)
--
2.19.1