[ 
https://issues.apache.org/jira/browse/SANDBOX-255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630778#action_12630778
 ] 

Stefano Bagnara commented on SANDBOX-255:
-----------------------------------------

The submitted patch assume that a MONITORENTER always happen for a local 
variable.
In my test the synchronized(object) made object to be a local variable too, so 
this should work.

I'm not sure if this is *always* the case.

> [javaflow] synchronized(obj) support is missing (locks are not released when 
> suspending resulting in IllegalMonitorExceptions)
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SANDBOX-255
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-255
>             Project: Commons Sandbox
>          Issue Type: Bug
>          Components: Javaflow
>            Reporter: Stefano Bagnara
>         Attachments: SANDBOX-255.diff
>
>
> MONITORENTER/MONITOREXIT are ignored by the rewriting engine.
> They should be tracked so that MONITOREXIT is issued for each monitor when 
> suspending and MONITORENTER si "replayed" when continuing.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to