8190570: Zero fails to build on linux-sparc due undefined reference
Reviewed-by: coleenp
--- 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