diff --git a/src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp b/src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp index 4625bb44f6d..3f1a4423b5e 100644 --- a/src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp +++ b/src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp @@ -8464,6 +8464,7 @@ class StubGenerator: public StubCodeGenerator { #endif // LINUX +#ifdef COMPILER2 if (UseSecondarySupersTable) { StubRoutines::_lookup_secondary_supers_table_slow_path_stub = generate_lookup_secondary_supers_table_slow_path_stub(); if (! InlineSecondarySupersTest) { @@ -8473,6 +8474,7 @@ class StubGenerator: public StubCodeGenerator { } } } +#endif StubRoutines::_upcall_stub_exception_handler = generate_upcall_stub_exception_handler();