Skip to content

Commit 12ca85b

Browse files
[clr-interp] Add support for synchronized methods (#120006)
- The general approach is to wrap the method is a try/finally block - This is done by appending some IL to the method, and adding an EH clause - This required implementing a few abstraction boundaries so that the code/eh clauses could be rewritten within the interpreter - Synchronized methods also re-use the shadow this pointer logic - existing IL which is encoded as a RET needs to actually have the semantics of a LEAVE to to the actual return from the method - We also have a couple of "intrinsic" tokens which the our implementation of CALL now recognizes.
1 parent 9af92a9 commit 12ca85b

File tree

5 files changed

+450
-85
lines changed

5 files changed

+450
-85
lines changed

0 commit comments

Comments
 (0)