Use workspace root modification rule when removing all breakpoints#2218
Use workspace root modification rule when removing all breakpoints#2218trancexpress wants to merge 1 commit intoeclipse-platform:masterfrom
Conversation
When removing breakpoints, its possible that another job is accessing the breakpoint marker. This can result in an exception, since removing a breakpoint will also remove the marker. This change moves breakpoint removal code in a job that holds a workspace root modification rule, if the current thread does not hold a matching rule. Fixes: eclipse-platform#2217
|
This revives the now gone: https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/165753 |
|
Would just passing the rule |
I'll check when I can, I'd have more confidence in the change that way. If you mean |
|
The When testing the change, I noticed its not enough to prevent the logged error. This code is removing the info: So apparently there is more to change... |
When removing breakpoints, its possible that another job is accessing the breakpoint marker. This can result in an exception, since removing a breakpoint will also remove the marker.
This change moves breakpoint removal code in a job that holds a workspace root modification rule, if the current thread does not hold a matching rule.
Fixes: #2217