Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2019.4.X, 2020.3.X, 2021.2.X
Votes
1
Found in
2019.4
2019.4.31f1
2020.3
2021.1
2021.2
2022.1
Issue ID
1373882
Regression
No
[IL2CPP] Thread_VolatileRead is added to build instead of VolatileRead when calling Thread.VolatileRead()
Reproduction steps:
1. Open the attached project "IL2CPPissue.zip"
2. Open the "SampleScene.unity" Scene
3. In the Editor, go to File > Build Settings and build the project
4. In the Build Settings select Add Open Scenes
5. When the build is completed, go to the project folder
6. Inside the project folder navigate to Temp > StaginArea > Il2Cpp > il2cppOutput
7. In the "il2cppOutput" folder find and open the "Assembly-CSharp.cpp" file
8. In the "Assembly-CSharp.cpp" file observe the comment "System.Void Test::Test1()" and notice that "Thread_VolatileRead" is added
9. In the "Assembly-CSharp.cpp" file observe the comment "System.Void Test::Test2()" and notice that "VolatileRead" is added
Expected result: "System.Void Test::Test1()" will have "VolatileRead" added
Actual result: "System.Void Test::Test1()" has "Thread_VolatileRead" added
Reproducible with: 2019.4.31f1, 2020.3.21f1, 2021.1.27f1, 2021.2.1f1, 2022.1.0a12
- Issue is reproducible when building the project for Standalone and Android
-
dejawitting26
Oct 25, 2023 04:59
Your writing on this wonderful topic has left me speechless. Normally, I check your site to see what new information you've posted, but I think today's entry will be the most helpful. That's fantastic work!
-
Alan-Liu
Mar 02, 2022 01:47
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0b1
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.6f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.25f1
Resolution Note (fix version 2019.4):
Fixed in: 2019.4.34f1