mthornton at optrak.co.uk
Wed Jan 14 14:45:35 EST 2009
Matthias Ernst wrote:
> On Wed, Jan 14, 2009 at 6:45 PM, Gregg Wonderly <gregg at cytetech.com> wrote:
>> Can someone elaborate why the reference on the stack as a local value would
>> not maintain a reference that lasted until the method exits?
> Why would it? The object will no longer be used in the rest of the
> method, why keep it alive?
> So it is totally conceivable that the stackmap will no longer announce
> this reference to the GC even if the value is still somewhere on the
> stack or in a register.
I believe this already happens with the current JVM (1.6_11 under
Windows, 32 bit).
More information about the Concurrency-interest