Weldon, I've found the cause that resulted in that code to appear.
This one covers the situation when waiting thread being suspended and
notified after that. This code is the part of the patch that prevents
suspended thread from acquiring that lock after notification.
Nik.
On 12/4/06, Weldon Washburn <[EMAIL PROTECTED]> wrote:
The following code does not look right. I looked in the JVM spec. I can't
find any mention that a Thread.suspend() should cause the target thread to
give up any java lock. I am trying to construct a test to confirm if this
is a problem or not. Anybody have any suggestions?
line 216:
if(self->suspend_request) {
hymutex_unlock(mon_ptr->mutex);
hythread_safe_point();
hymutex_lock(mon_ptr->mutex);
}
--
Weldon Washburn
Intel Enterprise Solutions Software Division