Files
dotnet-runtime/docs/workflow/debugging/coreclr
Kunal Pathak d76ef042f8 Make JitDump label output multi-thread safe (#32578)
* Make JitDump label output multi-thread safe

`s_compMethodsCount` is a static variable and incrementing it when
two JITs are running at the same time can result in inconsistent labels. This PR fixes it by adding an instance variable `compMethodID` on `Compiler` object and setting it to the value of `s_compMethodsCount` after incrementing it using `InterlockedIncrement()`.

Changed the type of `s_compMethodID` to `LONG` to match the signature of `InterlockedIncrement()` and made it private.

Fixes #10984
2020-02-27 09:19:23 -08:00
..