diff -r bd0a95bec96b -r 9042ffe5b7fe src/hotspot/share/utilities/hashtable.cpp --- a/src/hotspot/share/utilities/hashtable.cpp Fri May 04 09:29:14 2018 +0200 +++ b/src/hotspot/share/utilities/hashtable.cpp Fri May 04 11:41:35 2018 +0200 @@ -31,6 +31,7 @@ #include "classfile/placeholders.hpp" #include "classfile/protectionDomainCache.hpp" #include "classfile/stringTable.hpp" +#include "logging/log.hpp" #include "memory/allocation.inline.hpp" #include "memory/metaspaceShared.hpp" #include "memory/resourceArea.hpp" @@ -242,9 +243,7 @@ // For oops and Strings the size of the literal is interesting. For other types, nobody cares. static int literal_size(ConstantPool*) { return 0; } static int literal_size(Klass*) { return 0; } -#if INCLUDE_ALL_GCS static int literal_size(nmethod*) { return 0; } -#endif static int literal_size(Symbol *symbol) { return symbol->size() * HeapWordSize; @@ -447,11 +446,9 @@ #endif // PRODUCT // Explicitly instantiate these types -#if INCLUDE_ALL_GCS template class Hashtable; template class HashtableEntry; template class BasicHashtable; -#endif template class Hashtable; template class RehashableHashtable; template class RehashableHashtable;