changeset 47759:b140fe4ff916

8190570: Zero fails to build on linux-sparc due undefined reference Reviewed-by: coleenp
author glaubitz
date Mon, 06 Nov 2017 19:45:47 +0100
parents 5a69ba3a4fd1
children fedbf1b866a7
files src/hotspot/share/runtime/init.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/runtime/init.cpp	Mon Nov 06 17:56:29 2017 +0100
+++ b/src/hotspot/share/runtime/init.cpp	Mon Nov 06 19:45:47 2017 +0100
@@ -60,7 +60,11 @@
 jint universe_init();          // depends on codeCache_init and stubRoutines_init
 #if INCLUDE_ALL_GCS
 // depends on universe_init, must be before interpreter_init (currently only on SPARC)
+#ifndef ZERO
 void g1_barrier_stubs_init() NOT_SPARC({});
+#else
+void g1_barrier_stubs_init() {};
+#endif
 #endif
 void interpreter_init();       // before any methods loaded
 void invocationCounter_init(); // before any methods loaded