From 9adaaa0c96ca0b157988e7cf47bfa2d1d0d2f0e1 Mon Sep 17 00:00:00 2001 From: Thomas Stuefe Date: Tue, 3 Nov 2015 19:53:10 -0500 Subject: [PATCH] 8140648: Clean up remnants of fork1() from non-solaris platforms Clean up any remnants of fork1() from Non-Solaris platforms Reviewed-by: dholmes, goetz --- hotspot/make/aix/makefiles/mapfile-vers-debug | 1 - hotspot/make/aix/makefiles/mapfile-vers-product | 1 - hotspot/make/bsd/makefiles/mapfile-vers-debug | 1 - hotspot/make/bsd/makefiles/mapfile-vers-product | 1 - hotspot/make/linux/makefiles/mapfile-vers-debug | 1 - hotspot/make/linux/makefiles/mapfile-vers-product | 1 - hotspot/src/os/linux/vm/os_linux.cpp | 1 - 7 files changed, 7 deletions(-) diff --git a/hotspot/make/aix/makefiles/mapfile-vers-debug b/hotspot/make/aix/makefiles/mapfile-vers-debug index 048af4535d5..fb75f3dfcea 100644 --- a/hotspot/make/aix/makefiles/mapfile-vers-debug +++ b/hotspot/make/aix/makefiles/mapfile-vers-debug @@ -39,7 +39,6 @@ SUNWprivate_1.1 { jio_snprintf; jio_vfprintf; jio_vsnprintf; - fork1; numa_warn; numa_error; diff --git a/hotspot/make/aix/makefiles/mapfile-vers-product b/hotspot/make/aix/makefiles/mapfile-vers-product index 1fa9c284d8b..ec0f06d8f65 100644 --- a/hotspot/make/aix/makefiles/mapfile-vers-product +++ b/hotspot/make/aix/makefiles/mapfile-vers-product @@ -34,7 +34,6 @@ SUNWprivate_1.1 { jio_snprintf; jio_vfprintf; jio_vsnprintf; - fork1; numa_warn; numa_error; diff --git a/hotspot/make/bsd/makefiles/mapfile-vers-debug b/hotspot/make/bsd/makefiles/mapfile-vers-debug index 1fa9c284d8b..ec0f06d8f65 100644 --- a/hotspot/make/bsd/makefiles/mapfile-vers-debug +++ b/hotspot/make/bsd/makefiles/mapfile-vers-debug @@ -34,7 +34,6 @@ SUNWprivate_1.1 { jio_snprintf; jio_vfprintf; jio_vsnprintf; - fork1; numa_warn; numa_error; diff --git a/hotspot/make/bsd/makefiles/mapfile-vers-product b/hotspot/make/bsd/makefiles/mapfile-vers-product index 1fa9c284d8b..ec0f06d8f65 100644 --- a/hotspot/make/bsd/makefiles/mapfile-vers-product +++ b/hotspot/make/bsd/makefiles/mapfile-vers-product @@ -34,7 +34,6 @@ SUNWprivate_1.1 { jio_snprintf; jio_vfprintf; jio_vsnprintf; - fork1; numa_warn; numa_error; diff --git a/hotspot/make/linux/makefiles/mapfile-vers-debug b/hotspot/make/linux/makefiles/mapfile-vers-debug index 1fa9c284d8b..ec0f06d8f65 100644 --- a/hotspot/make/linux/makefiles/mapfile-vers-debug +++ b/hotspot/make/linux/makefiles/mapfile-vers-debug @@ -34,7 +34,6 @@ SUNWprivate_1.1 { jio_snprintf; jio_vfprintf; jio_vsnprintf; - fork1; numa_warn; numa_error; diff --git a/hotspot/make/linux/makefiles/mapfile-vers-product b/hotspot/make/linux/makefiles/mapfile-vers-product index 1fa9c284d8b..ec0f06d8f65 100644 --- a/hotspot/make/linux/makefiles/mapfile-vers-product +++ b/hotspot/make/linux/makefiles/mapfile-vers-product @@ -34,7 +34,6 @@ SUNWprivate_1.1 { jio_snprintf; jio_vfprintf; jio_vsnprintf; - fork1; numa_warn; numa_error; diff --git a/hotspot/src/os/linux/vm/os_linux.cpp b/hotspot/src/os/linux/vm/os_linux.cpp index 0665eedb412..309c1bfea4d 100644 --- a/hotspot/src/os/linux/vm/os_linux.cpp +++ b/hotspot/src/os/linux/vm/os_linux.cpp @@ -2819,7 +2819,6 @@ int os::Linux::sched_getcpu_syscall(void) { // Something to do with the numa-aware allocator needs these symbols extern "C" JNIEXPORT void numa_warn(int number, char *where, ...) { } extern "C" JNIEXPORT void numa_error(char *where) { } -extern "C" JNIEXPORT int fork1() { return fork(); } // If we are running with libnuma version > 2, then we should