8140630: java/nio/Buffer/Basic.java crashes vm on linux-x64 using latest devkit to build
authorbpb
Wed, 04 Nov 2015 14:06:45 -0800
changeset 33522 8d13fc52c3c4
parent 33521 2defe339fe36
child 33523 eb067bcd9414
8140630: java/nio/Buffer/Basic.java crashes vm on linux-x64 using latest devkit to build Summary: Build Bits.c at a lower optimization level on linux-x64. Reviewed-by: tbell
jdk/make/lib/CoreLibraries.gmk
--- a/jdk/make/lib/CoreLibraries.gmk	Wed Nov 04 11:27:58 2015 -0800
+++ b/jdk/make/lib/CoreLibraries.gmk	Wed Nov 04 14:06:45 2015 -0800
@@ -139,6 +139,12 @@
   endif
 endif
 
+ifeq ($(OPENJDK_TARGET_OS), linux)
+  ifeq ($(OPENJDK_TARGET_CPU), x86_64)
+    BUILD_LIBJAVA_Bits.c_CFLAGS := $(C_O_FLAG_NORM)
+  endif
+endif
+
 $(eval $(call SetupNativeCompilation,BUILD_LIBJAVA, \
     LIBRARY := java, \
     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \