Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive

Fix range violation in multithreaded application compiled with -profile=gc option#1664

Closed
japplegame wants to merge 2 commits intodlang:masterfrom
japplegame:patch-1
Closed

Fix range violation in multithreaded application compiled with -profile=gc option#1664
japplegame wants to merge 2 commits intodlang:masterfrom
japplegame:patch-1

Conversation

@japplegame
Copy link

@JackStouffer
Copy link
Contributor

Please follow the D style guide

@UplinkCoder
Copy link
Member

This will not fix anything in the long run.
The range violation happens because of race-conditions.
You would have to use a Mutex.

Copy link
Member

@UplinkCoder UplinkCoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use a Mutex if you want this to work multithreaded.

@japplegame
Copy link
Author

No. The range violation happens because of wrong merging several TLS arrays into one. There is no race conditions and no need of additional mutexes, because the code is already synchronized, see line 90

@japplegame
Copy link
Author

Ping

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants