changeset 13012:9ecb10ce62c6

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
author bpb
date Wed, 04 Nov 2015 14:06:45 -0800
parents d3f793857ca3
children 20ccac7e0705
files make/lib/CoreLibraries.gmk
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/make/lib/CoreLibraries.gmk	Wed Nov 04 11:27:58 2015 -0800
+++ b/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), \