tags:

views:

38

answers:

1

Can anyone provide me test cases in java in which objects are being incrementally created so that i can use those to test my MarkSweep garbage collection code.

+1  A: 

The Jikes RVM open source project has a complete suite of regression tests. You might find some ideas there.

http://jikesrvm.org/Regression+Tests

Their page about mark/sweep collection is here:

http://jikesrvm.org/Building+a+Mark-sweep+Collector

Robert Harvey