gback at cs.utah.edu
Tue Jan 26 08:51:17 PST 1999
You could put it for instance in the header of java_lang_Object after
the dispatch table.
I'll commit two more functions to the gc interface shortly, one
to get an object's index and one to pretty-print it. They may be
useful for you.
Using these functions to add a verbose heap walk would be a
really nice thing to have...
Also, what does -verbosemem show and what -ms/-mx switches do you use?
> I wish to make a simple memory profiling.
> I have redefined interface to GC to send
> function name of memory allocator.
> I keep count of allocated memory by each
> source, but I need to substitute
> freed memory. So, I need to put a pointer
> to allocator in each piece of allocated
> memory, find out allocator at gcFree (?)
> and decrease the total counter for
> this allocator...
> The question is - in which structure
> I should put this pointer?
> I tryed gc_unit, but it does not work...
> Where should I put it???
> PS I can't debug my compiler, it takes
> 64Mb memory again! It's impossible
> to work...
More information about the kaffe