Closed guoyiteng closed 4 years ago
Now, the compiler emits synchronized method call in the caller site. The logic is not exactly the same as a try-finally code to avoid the dominate all uses
error. I also added a simple monitor in runtime to check the correctness of the implementation.
Add something like this to the test suite as well: SynchronizedTest.txt
Currently this passes, which is good :)
LGTM
This PR is still WIP. What's left is to desugar
synchronized
keyword in the method signature.