--- old/src/hotspot/share/classfile/stringTable.cpp 2018-04-27 15:29:44.138202905 +0200 +++ new/src/hotspot/share/classfile/stringTable.cpp 2018-04-27 15:29:43.890202914 +0200 @@ -44,7 +44,7 @@ #include "services/diagnosticCommand.hpp" #include "utilities/hashtable.inline.hpp" #include "utilities/macros.hpp" -#if INCLUDE_ALL_GCS +#if INCLUDE_G1GC #include "gc/g1/g1StringDedup.hpp" #endif @@ -260,7 +260,7 @@ string = java_lang_String::create_from_unicode(name, len, CHECK_NULL); } -#if INCLUDE_ALL_GCS +#if INCLUDE_G1GC if (G1StringDedup::is_enabled()) { // Deduplicate the string before it is interned. Note that we should never // deduplicate a string after it has been interned. Doing so will counteract