Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 9ea3d2a

Browse files
kouvelKoundinya Veluri
authored andcommitted
Don't close the JIT func info file on shutdown (#18060)
Port of #18060 to 2.2 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.
1 parent fce15e5 commit 9ea3d2a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/jit/compiler.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,14 +1437,6 @@ void Compiler::compShutdown()
14371437
}
14381438
#endif // FEATURE_JIT_METHOD_PERF
14391439

1440-
#if FUNC_INFO_LOGGING
1441-
if (compJitFuncInfoFile != nullptr)
1442-
{
1443-
fclose(compJitFuncInfoFile);
1444-
compJitFuncInfoFile = nullptr;
1445-
}
1446-
#endif // FUNC_INFO_LOGGING
1447-
14481440
#if COUNT_RANGECHECKS
14491441
if (optRangeChkAll > 0)
14501442
{

0 commit comments

Comments
 (0)