Zero JVM segfaulting on linux-sparc
John Paul Adrian Glaubitz
glaubitz at physik.fu-berlin.de
Fri Dec 21 12:27:21 UTC 2018
Hi Severin!
On 12/21/18 10:12 AM, Severin Gehwolf wrote:
> It could be that you are hitting a GCC bug specific to linux sparc.
> Then again, why wouldn't you hit it for a server JVM. As a temporary
> work-around you could try this (compile without opt as prior JDK-
> 8210425, not tested):
>
> diff --git a/make/hotspot/lib/JvmOverrideFiles.gmk b/make/hotspot/lib/JvmOverrideFiles.gmk
> --- a/make/hotspot/lib/JvmOverrideFiles.gmk
> +++ b/make/hotspot/lib/JvmOverrideFiles.gmk
> @@ -49,6 +49,15 @@
> # 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 spark
> + # See JDK-XXXX
> + ifeq ($(call check-jvm-feature, zero), true)
> + ifeq ($(OPENJDK_TARGET_OS), linux)
> + ifeq ($(OPENJDK_TARGET_CPU_ARCH), spark)
> + LIBJVM_FDLIBM_COPY_OPT_FLAG := $(CXX_O_FLAG_NONE)
> + endif
> + endif
> + endif
> endif
This indeed fixes the problem for me, with the spelling fix for "sparc" ;-).
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz at debian.org
`. `' Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
More information about the hotspot-dev
mailing list