--- old/src/hotspot/share/classfile/klassFactory.cpp 2018-04-09 15:29:55.443788773 -0700 +++ new/src/hotspot/share/classfile/klassFactory.cpp 2018-04-09 15:29:55.176763589 -0700 @@ -232,7 +232,7 @@ #if INCLUDE_CDS if (DumpSharedSpaces) { - ClassLoader::record_result(result, stream); + ClassLoader::record_result(result, stream, THREAD); #if INCLUDE_JVMTI assert(cached_class_file == NULL, "Sanity"); // Archive the class stream data into the optional data section