src/hotspot/share/classfile/stringTable.cpp
changeset 49982 9042ffe5b7fe
parent 49734 f946776e9354
child 50057 f945444fabc3
equal deleted inserted replaced
49981:bd0a95bec96b 49982:9042ffe5b7fe
    42 #include "runtime/mutexLocker.hpp"
    42 #include "runtime/mutexLocker.hpp"
    43 #include "runtime/safepointVerifiers.hpp"
    43 #include "runtime/safepointVerifiers.hpp"
    44 #include "services/diagnosticCommand.hpp"
    44 #include "services/diagnosticCommand.hpp"
    45 #include "utilities/hashtable.inline.hpp"
    45 #include "utilities/hashtable.inline.hpp"
    46 #include "utilities/macros.hpp"
    46 #include "utilities/macros.hpp"
    47 #if INCLUDE_ALL_GCS
    47 #if INCLUDE_G1GC
    48 #include "gc/g1/g1StringDedup.hpp"
    48 #include "gc/g1/g1StringDedup.hpp"
    49 #endif
    49 #endif
    50 
    50 
    51 // the number of buckets a thread claims
    51 // the number of buckets a thread claims
    52 const int ClaimChunkSize = 32;
    52 const int ClaimChunkSize = 32;
   258     string = string_or_null;
   258     string = string_or_null;
   259   } else {
   259   } else {
   260     string = java_lang_String::create_from_unicode(name, len, CHECK_NULL);
   260     string = java_lang_String::create_from_unicode(name, len, CHECK_NULL);
   261   }
   261   }
   262 
   262 
   263 #if INCLUDE_ALL_GCS
   263 #if INCLUDE_G1GC
   264   if (G1StringDedup::is_enabled()) {
   264   if (G1StringDedup::is_enabled()) {
   265     // Deduplicate the string before it is interned. Note that we should never
   265     // Deduplicate the string before it is interned. Note that we should never
   266     // deduplicate a string after it has been interned. Doing so will counteract
   266     // deduplicate a string after it has been interned. Doing so will counteract
   267     // compiler optimizations done on e.g. interned string literals.
   267     // compiler optimizations done on e.g. interned string literals.
   268     G1StringDedup::deduplicate(string());
   268     G1StringDedup::deduplicate(string());