changeset 50633:44b64fc0baa3

8202974: Backout JDK-8202683 Reviewed-by: stuefe, erikj
author shade
date Fri, 11 May 2018 17:37:14 +0200
parents 07015dd8157f
children f001977641fb
files make/copy/Copy-java.base.gmk
diffstat 1 files changed, 16 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/make/copy/Copy-java.base.gmk	Fri May 11 11:08:32 2018 -0400
+++ b/make/copy/Copy-java.base.gmk	Fri May 11 17:37:14 2018 +0200
@@ -97,21 +97,25 @@
 endif
 JVMCFG := $(LIB_DST_DIR)/jvm.cfg
 
-# We have three potential VMs: client, server and minimal.
-# Historically we usually have both client and server and so that is what the
-# committed jvm.cfg expects (including platform specific ergonomics switches
-# to decide whether to use client or server by default). So when we have anything
-# other than client and server we need to define a new jvm.cfg file.
-# The main problem is deciding whether to use aliases for the VMs that are not
-# present and the current position is that we add aliases for client and server, but
-# not for minimal.
-CLIENT_AND_SERVER := $(call check-jvm-variant, client)+$(call check-jvm-variant, server)
-ifeq ($(CLIENT_AND_SERVER), true+true)
+ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
   COPY_JVM_CFG_FILE := true
 else
-  # For zero, the default jvm.cfg file is sufficient
-  ifeq ($(call check-jvm-variant, zero), true)
+  # On 32-bit machines we have three potential VMs: client, server and minimal.
+  # Historically we usually have both client and server and so that is what the
+  # committed jvm.cfg expects (including platform specific ergonomics switches
+  # to decide whether to use client or server by default). So when we have anything
+  # other than client and server we need to define a new jvm.cfg file.
+  # The main problem is deciding whether to use aliases for the VMs that are not
+  # present and the current position is that we add aliases for client and server, but
+  # not for minimal.
+  CLIENT_AND_SERVER := $(call check-jvm-variant, client)+$(call check-jvm-variant, server)
+  ifeq ($(CLIENT_AND_SERVER), true+true)
     COPY_JVM_CFG_FILE := true
+  else
+    # For zero, the default jvm.cfg file is sufficient
+    ifeq ($(call check-jvm-variant, zero), true)
+      COPY_JVM_CFG_FILE := true
+    endif
   endif
 endif