mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
* 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