- Subject: notifyAll in VMProcess
- From: nicolas.geoffray@xxxxxxxxxxx
- Date: Thu, 11 Jun 2009 10:08:14 +0200
- User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
Hi all,
There's a mismatch between comment and implementation in
vm/reference/java/lang/VMProcess.java. The text says:
<<The instance is Object.notifyAll'd each time the state changes.>>
But the implementation actually only calls notify. By looking at the
code, it makes sense that the instance should be notifyAll'd because
multiple threads may be waiting on a VMProcess (through waitFor or
destroy). So is that a bug in the implementation, or am I missing something?
Cheers,
Nicolas
[Linux Kernel]
[Linux Cryptography]
[Fedora]
[Fedora Directory]
[Red Hat Development]