Boehm-gc porting

Peter Blemel pblemel@hotmail.com
Fri Sep 10 12:50:00 GMT 2004


Hello World,

Thanks to several kind folks who've answered my questions along the way, I 
now have what appears to be a working gctest application running on my 
embedded powerpc box.    I get many (many) screens of output, ending with :

Completed 1 tests
Allocated 648021 collectable objects
Allocated 101 uncollectable objects
Allocated 1250000 atomic objects
Allocated 10880 stubborn objects
Finalized 2206/2206 objects -
finalization is probably ok
Total number of bytes allocated is 49968088
Final heap size is 4239360 bytes
Collector appears to work

:-) :-) :-) :-)  It's single threaded (for now) but I'm happy.

It's not clear to me (in spite of all of the output) how shallow this test 
set is.  Rather than plowing through a lot of code I'll just ask :-)   
'references' to malloc'd RAM can be stored in registers, the data segment, 
on the stack, and in my process RAM space.    Does the test set check for 
accidental collection of pointers stored in all (any) of the regions?  Not 
collected when they should be?  Etc?

Next up is building libgcj to use it.  The library was built 
-DGC_GCJ_SUPPORT.   Any surprises to look out for?  Is there a Java test 
application for the library?

Thanks and Regards

_________________________________________________________________
Get ready for school! Find articles, homework help and more in the Back to 
School Guide! http://special.msn.com/network/04backtoschool.armx



More information about the Java-patches mailing list