Mercurial > hg > truffle
comparison src/share/vm/memory/dump.cpp @ 263:12eea04c8b06
6672698: mangle_unused_area() should not remangle the entire heap at each collection.
Summary: Maintain a high water mark for the allocations in a space and mangle only up to that high water mark.
Reviewed-by: ysr, apetrusenko
author | jmasa |
---|---|
date | Wed, 09 Jul 2008 15:08:55 -0700 |
parents | ba764ed4b6f2 |
children | 850fdf70db2b |
comparison
equal
deleted
inserted
replaced
225:286bee59f34b | 263:12eea04c8b06 |
---|---|
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 |