--- old/src/hotspot/share/classfile/symbolTable.cpp 2020-03-26 15:58:03.000000000 -0700 +++ new/src/hotspot/share/classfile/symbolTable.cpp 2020-03-26 15:58:02.000000000 -0700 @@ -459,6 +459,8 @@ void SymbolTable::new_symbols(ClassLoaderData* loader_data, const constantPoolHandle& cp, int names_count, const char** names, int* lengths, int* cp_indices, unsigned int* hashValues) { + // Note that c_heap will be true for unsafe anonymous and weak hidden classes + // even if their loader is the boot loader because they will have a different cld. bool c_heap = !loader_data->is_the_null_class_loader_data(); for (int i = 0; i < names_count; i++) { const char *name = names[i];