On 8/6/07, 史成荣 <[EMAIL PROTECTED]> wrote: > The exception handling infrastructure in some JVM is designed to track > objects as they are locked and unlocked. It automatically unlock any locked > objects when the exception occurs before any exception handler is executed > or before the frame is deleted if there is no > handler for the exception in the frame's method. Does the Harmony DRLVM hava > this mechanism? >
Chengrong, I guess this is required by JVM spec to release the lock(s) when the exception is thrown out of the (nested) locked region. Otherwise, they will have unpaired monitorexits. Thanks, xiaofeng -- http://xiao-feng.blogspot.com
