643 // Empty the young and old generations. |
643 // Empty the young and old generations. |
644 |
644 |
645 class ClearSpaceClosure : public SpaceClosure { |
645 class ClearSpaceClosure : public SpaceClosure { |
646 public: |
646 public: |
647 void do_space(Space* s) { |
647 void do_space(Space* s) { |
648 s->clear(); |
648 s->clear(SpaceDecorator::Mangle); |
649 } |
649 } |
650 }; |
650 }; |
651 |
651 |
652 |
652 |
653 // Closure for serializing initialization data out to a data area to be |
653 // Closure for serializing initialization data out to a data area to be |