When might a CodeBuffer be moved?
gbenson at redhat.com
Thu Jun 11 02:18:57 PDT 2009
Oh, that's excellent news. Now to figure out if I can use it! ;)
Tom Rodriguez wrote:
> CodeBlobs are never moved automatically by anything. CodeBuffers
> have support for resizing the code generation buffer by moving the
> instructions from one CodeBlob to a new larger one but you have to
> ask for that using maybe_expand_to_ensure_remaining. nmethod can
> be reclaimed by the sweeper once they are no longer referenced as
> a result of being made not entrant or zombie.
> On Jun 10, 2009, at 6:55 AM, Gary Benson wrote:
> > Hi all,
> > I know CodeBuffers aren't moved by the garbage collector, but can
> > they move at all? I remember someone (Steve Goldman?) telling me
> > about a code compactor once, but can't remember the details. Can
> > a code buffer move at any safepoint?
> > Cheers,
> > Gary
> > --
> > http://gbenson.net/
More information about the hotspot-dev