src/hotspot/share/classfile/stringTable.cpp
changeset 49982 9042ffe5b7fe
parent 49734 f946776e9354
child 50057 f945444fabc3
--- a/src/hotspot/share/classfile/stringTable.cpp	Fri May 04 09:29:14 2018 +0200
+++ b/src/hotspot/share/classfile/stringTable.cpp	Fri May 04 11:41:35 2018 +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