During shutdown there can be a race between closing/nulling `compJitFuncInfoFile` in `compShutdown` and a background thread trying to write to it after checking that it was not null.
Commit migrated from https://github.com/dotnet/coreclr/commit/
df78ae72d5cf3f2c2dbe4ff972732d418497f9bc
}
#endif // FEATURE_JIT_METHOD_PERF
-#if FUNC_INFO_LOGGING
- if (compJitFuncInfoFile != nullptr)
- {
- fclose(compJitFuncInfoFile);
- compJitFuncInfoFile = nullptr;
- }
-#endif // FUNC_INFO_LOGGING
-
#if COUNT_RANGECHECKS
if (optRangeChkAll > 0)
{