Uh oh!
There was an error while loading. Please reload this page.
More thread-safety changes - #49882
Conversation
bors
commented
Apr 12, 2018
☔ The latest upstream changes (presumably #49558) made this pull request unmergeable. Please resolve the merge conflicts. |
michaelwoerister
commented
Apr 13, 2018
Could the arena case not be handled by wrapping arenas in a mutex instead of hard-coding the mutex into the arena types? This way one could decide on a case-by-case basis if an arena needs to be synchronized or not. |
Zoxc
commented
Apr 13, 2018
No, arenas and mutexes do not compose. We could have a thread-safe and thread-unsafe variants of the arenas however. That would probably reduce the amount of changed lines too. |
michaelwoerister
commented
Apr 13, 2018
Can you elaborate on that? Do you mean that one can't use a thread-unsafe arena where a thread-safe arena is expect? |
Zoxc
commented
Apr 13, 2018
If you use a |
bors
commented
Apr 14, 2018
☔ The latest upstream changes (presumably #49396) made this pull request unmergeable. Please resolve the merge conflicts. |
4eb94b3 to
04c213cComparerust-highfive
commented
Apr 15, 2018
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Zoxc
commented
Apr 15, 2018
I added thread-safe variant of the arenas instead of modifying the existing types. |
michaelwoerister
commented
Apr 16, 2018
Thanks, I think that's an improvement. |
| pub fn enter_local<F, R>( | ||
| &self, | ||
| arena: &'tcx DroplessArena, | ||
| arena: &'tcx SyncDroplessArena, |
There was a problem hiding this comment.
Could the local arenas in theory be non-synchronized?
There was a problem hiding this comment.
All the arenas could be thread-local if we find a way to deal with lifting of types.
michaelwoerister
commented
Apr 16, 2018
bors
commented
Apr 16, 2018
📌 Commit fe63637 has been approved by |
bors
commented
Apr 17, 2018
More thread-safety changes r? @michaelwoerister
bors
commented
Apr 17, 2018
☀️ Test successful - status-appveyor, status-travis |
r? @michaelwoerister