Boehm-gc porting
Boehm, Hans
hans.boehm@hp.com
Fri Sep 10 15:44:00 GMT 2004
Given its brevity, I think the test is not too bad.
The problems that have managed to evade it in the
past are usually:
1) Problems that are just plain hard to reproduce because
hey require concurrent execution of two specific sections
f code, or placement of a particular object in a particular
position in a block, or particular kernel scheduling
decisions, or particular callee-/caller-save register
allocation decisions.
2) Occasionally some esoteric functionality that
isn't adequately tested. None of what you describe qualifies.
3) It only tests one configuration. I don't always test the
one that clients end up caring about.
I don't know if there are good Java GC tests
in the test suite. Most of the libgcj test suite
is known to run fine with a broken collector,
because they are too short. I tend to use the command-line
version (rpn_calc) of CRCalc, but that's neither thorough,
nor entirely automatic. Computing a few thousand digits of
tan(atan(10^100)) ("10<enter>100^Tt3000>") runs for a long time
(a few minutes, probably), garbage collects a fair amount,
and you know what the answer should be.
(You can download CRCalc from
http://www.hpl.hp.com/personal/Hans_Boehm/new_crcalc/download/CRCalc.tar.gz.
"make rpn_calc" should build the command line gcj version,
once you have a working gcj.)
Hans
> -----Original Message-----
> From: java-patches-owner@gcc.gnu.org
> [mailto:java-patches-owner@gcc.gnu.org]On Behalf Of Peter Blemel
> Sent: Wednesday, September 08, 2004 11:32 PM
> To: java-patches@gcc.gnu.org
> Subject: Boehm-gc porting
>
>
>
> 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