-
-
Notifications
You must be signed in to change notification settings - Fork 416
fix Issue 11216 - Make synchronized statement nothrow
#1013
Conversation
As this changes the API of the Object.Monitor interface it can potentially break client code that implements this interface. I couldn't come up with an idea how to avoid this, but it will only affect very few people and it will be simple to fulfill the nothrow requirement. |
requires dlang/phobos#2704 which in turn requires #1021 |
Need to nothrow the osx semaphore headers. |
- require Object.Monitor lock and unlock functions to be nothrow - change methods of all core.sync classes to nothrow
50ef0c7
to
05b15ab
Compare
Updated |
LGTM |
Well, the compiler change for _d_monitorenter and _d_monitorexit is already in.
At worse, So unless there are any further objections, I'll merge this soon. |
Auto-merge toggled on |
Since we already march in this way and opposition is rather weak I'm merging it. |
fix Issue 11216 - Make synchronized statement `nothrow`
Thx |
Even better because it checks nothrow in 2.067. static if (__VERSION__ <= 2066)
scope (failure) assert(0, "should be nothrow"); |
Requires dmd pull dlang/dmd#4115
Issue 11216