Unsafe: removing the monitorEnter/monitorExit/tryMonitorEnter methods
vitalyd at gmail.com
Thu Feb 27 13:56:32 UTC 2014
Right, there's no such guarantee/requirement. JVMS mentions that
implementations are permitted to enforce balance (called structured locking
there) but not required:
Sent from my phone
On Feb 27, 2014 8:40 AM, "Jeroen Frijters" <jeroen at sumatra.nl> wrote:
> David Holmes wrote:
> > I don't think this is workable. Exposing a monitor as Lock would allow
> > you to break the guarantees/requirements involving balanced-locking for
> > monitors.
> Where are these guarantees/requirements documented?
More information about the core-libs-dev