GC leaks debugging

Andrew Haley aph@redhat.com
Fri Apr 1 09:34:00 GMT 2011


On 04/01/2011 10:02 AM, Erik Groeneveld wrote:
> On Fri, Apr 1, 2011 at 10:45, Andrew Haley <aph@redhat.com> wrote:
>> On 01/04/11 09:39, Erik Groeneveld wrote:
>>> From reading about the
>>> GC, I understand that the GC knows what is a pointer and what not
>>> because there is type information associated with the Java objects.
>>> So I'd expect no black-listing at all. It that a right observation?
>>>> No. Objects are scanned precisely, but the stack is not.
>> Thanks. I think I can rule the stack out by reviewing/adapting my
> test program. I'll do that first.
>>> Also, depending
>> on your compilation options, the data segments of your program may be
>> scanned conservatively.
>> I have to think about this one. Which options are you thinking of?

-findirect-dispatch
With that option, everything except the stack is scanned precisely. However,
there is some runtime overhead.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /