When might a CodeBuffer be moved?
Tom Rodriguez
Thomas.Rodriguez at Sun.COM
Wed Jun 10 09:16:09 PDT 2009
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.
tom
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
mailing list