From df78ae72d5cf3f2c2dbe4ff972732d418497f9bc Mon Sep 17 00:00:00 2001 From: Koundinya Veluri Date: Mon, 25 Jun 2018 09:41:51 -0700 Subject: [PATCH] Don't close the JIT func info file on shutdown (#18060) 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. --- src/jit/compiler.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/jit/compiler.cpp b/src/jit/compiler.cpp index 9706ece..67675fc 100644 --- a/src/jit/compiler.cpp +++ b/src/jit/compiler.cpp @@ -1462,14 +1462,6 @@ void Compiler::compShutdown() } #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) { -- 2.7.4