8190570: Zero fails to build on linux-sparc due undefined reference
authorglaubitz
Mon, 06 Nov 2017 19:45:47 +0100
changeset 47812 b140fe4ff916
parent 47795 5a69ba3a4fd1
child 47813 fedbf1b866a7
8190570: Zero fails to build on linux-sparc due undefined reference Reviewed-by: coleenp
src/hotspot/share/runtime/init.cpp
--- 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