equal
deleted
inserted
replaced
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "gc/serial/genMarkSweep.hpp" |
|
27 #include "gc/shared/blockOffsetTable.inline.hpp" |
26 #include "gc/shared/blockOffsetTable.inline.hpp" |
28 #include "gc/shared/cardTableRS.hpp" |
27 #include "gc/shared/cardTableRS.hpp" |
29 #include "gc/shared/collectedHeap.inline.hpp" |
28 #include "gc/shared/collectedHeap.inline.hpp" |
30 #include "gc/shared/gcLocker.hpp" |
29 #include "gc/shared/gcLocker.hpp" |
31 #include "gc/shared/gcTimer.hpp" |
30 #include "gc/shared/gcTimer.hpp" |
302 void Generation::safe_object_iterate(ObjectClosure* cl) { |
301 void Generation::safe_object_iterate(ObjectClosure* cl) { |
303 GenerationSafeObjIterateClosure blk(cl); |
302 GenerationSafeObjIterateClosure blk(cl); |
304 space_iterate(&blk); |
303 space_iterate(&blk); |
305 } |
304 } |
306 |
305 |
|
306 #if INCLUDE_SERIALGC |
|
307 |
307 void Generation::prepare_for_compaction(CompactPoint* cp) { |
308 void Generation::prepare_for_compaction(CompactPoint* cp) { |
308 // Generic implementation, can be specialized |
309 // Generic implementation, can be specialized |
309 CompactibleSpace* space = first_compaction_space(); |
310 CompactibleSpace* space = first_compaction_space(); |
310 while (space != NULL) { |
311 while (space != NULL) { |
311 space->prepare_for_compaction(cp); |
312 space->prepare_for_compaction(cp); |
332 while (sp != NULL) { |
333 while (sp != NULL) { |
333 sp->compact(); |
334 sp->compact(); |
334 sp = sp->next_compaction_space(); |
335 sp = sp->next_compaction_space(); |
335 } |
336 } |
336 } |
337 } |
|
338 |
|
339 #endif // INCLUDE_SERIALGC |