From 243cb098d48741e9bd6308ef7609c9a4637a5e07 Mon Sep 17 00:00:00 2001 From: Andrew John Hughes Date: Sat, 9 Mar 2024 13:30:36 +0000 Subject: [PATCH] 8327389: Remove use of HOTSPOT_BUILD_USER Reviewed-by: erikj, ihse --- make/hotspot/lib/CompileJvm.gmk | 1 - make/ide/eclipse/CreateWorkspace.gmk | 2 -- .../src/classes/build/tools/projectcreator/BuildConfig.java | 1 - .../classes/build/tools/projectcreator/ProjectCreator.java | 2 +- src/hotspot/share/runtime/abstract_vm_version.cpp | 6 +----- 5 files changed, 2 insertions(+), 10 deletions(-) diff --git a/make/hotspot/lib/CompileJvm.gmk b/make/hotspot/lib/CompileJvm.gmk index 69cd80f5171..19699be4aed 100644 --- a/make/hotspot/lib/CompileJvm.gmk +++ b/make/hotspot/lib/CompileJvm.gmk @@ -73,7 +73,6 @@ CFLAGS_VM_VERSION := \ $(VERSION_CFLAGS) \ -DHOTSPOT_VERSION_STRING='"$(VERSION_STRING)"' \ -DDEBUG_LEVEL='"$(DEBUG_LEVEL)"' \ - -DHOTSPOT_BUILD_USER='"$(USERNAME)"' \ -DHOTSPOT_VM_DISTRO='"$(HOTSPOT_VM_DISTRO)"' \ -DCPU='"$(OPENJDK_TARGET_CPU_VM_VERSION)"' \ -DHOTSPOT_BUILD_TIME='"$(HOTSPOT_BUILD_TIME)"' \ diff --git a/make/ide/eclipse/CreateWorkspace.gmk b/make/ide/eclipse/CreateWorkspace.gmk index a7937a33d9e..2362c0f7e71 100644 --- a/make/ide/eclipse/CreateWorkspace.gmk +++ b/make/ide/eclipse/CreateWorkspace.gmk @@ -280,7 +280,6 @@ define SetupEclipseWorkspaceBody \ \ \ - \ \ \ \ @@ -288,7 +287,6 @@ define SetupEclipseWorkspaceBody \ \ \ - \ \ \ \ diff --git a/make/ide/visualstudio/hotspot/src/classes/build/tools/projectcreator/BuildConfig.java b/make/ide/visualstudio/hotspot/src/classes/build/tools/projectcreator/BuildConfig.java index 7d733bde909..4dd3c898b61 100644 --- a/make/ide/visualstudio/hotspot/src/classes/build/tools/projectcreator/BuildConfig.java +++ b/make/ide/visualstudio/hotspot/src/classes/build/tools/projectcreator/BuildConfig.java @@ -221,7 +221,6 @@ class BuildConfig { Vector sysDefines = new Vector(); sysDefines.add("WIN32"); sysDefines.add("_WINDOWS"); - sysDefines.add("HOTSPOT_BUILD_USER=\\\""+System.getProperty("user.name")+"\\\""); sysDefines.add("HOTSPOT_BUILD_TARGET=\\\""+get("Build")+"\\\""); sysDefines.add("INCLUDE_JFR=1"); sysDefines.add("_JNI_IMPLEMENTATION_"); diff --git a/make/ide/visualstudio/hotspot/src/classes/build/tools/projectcreator/ProjectCreator.java b/make/ide/visualstudio/hotspot/src/classes/build/tools/projectcreator/ProjectCreator.java index d5478230a42..a61afa8461a 100644 --- a/make/ide/visualstudio/hotspot/src/classes/build/tools/projectcreator/ProjectCreator.java +++ b/make/ide/visualstudio/hotspot/src/classes/build/tools/projectcreator/ProjectCreator.java @@ -78,7 +78,7 @@ public class ProjectCreator { System.err.println(" are both quoted strings."); System.err.println(" Default includes: \".\""); System.err - .println(" Default defines: WIN32, _WINDOWS, \"HOTSPOT_BUILD_USER=$(USERNAME)\""); + .println(" Default defines: WIN32, _WINDOWS"); } public static void main(String[] args) { diff --git a/src/hotspot/share/runtime/abstract_vm_version.cpp b/src/hotspot/share/runtime/abstract_vm_version.cpp index 9fada531d0b..69a96747aa3 100644 --- a/src/hotspot/share/runtime/abstract_vm_version.cpp +++ b/src/hotspot/share/runtime/abstract_vm_version.cpp @@ -197,10 +197,6 @@ const char *Abstract_VM_Version::vm_platform_string() { } const char* Abstract_VM_Version::internal_vm_info_string() { - #ifndef HOTSPOT_BUILD_USER - #define HOTSPOT_BUILD_USER unknown - #endif - #ifndef HOTSPOT_BUILD_COMPILER #ifdef _MSC_VER #if _MSC_VER == 1911 @@ -284,7 +280,7 @@ const char* Abstract_VM_Version::internal_vm_info_string() { #define INTERNAL_VERSION_SUFFIX VM_RELEASE ")" \ " for " OS "-" CPU FLOAT_ARCH_STR LIBC_STR \ " JRE (" VERSION_STRING "), built on " HOTSPOT_BUILD_TIME \ - " by " XSTR(HOTSPOT_BUILD_USER) " with " HOTSPOT_BUILD_COMPILER + " with " HOTSPOT_BUILD_COMPILER return strcmp(DEBUG_LEVEL, "release") == 0 ? VMNAME " (" INTERNAL_VERSION_SUFFIX