comparison src/share/vm/gc_implementation/g1/g1CardCounts.hpp @ 20543:e7d0505c8a30

8059758: Footprint regressions with JDK-8038423 Summary: Changes in JDK-8038423 always initialize (zero out) virtual memory used for auxiliary data structures. This causes a footprint regression for G1 in startup benchmarks. This is because they do not touch that memory at all, so the operating system does not actually commit these pages. The fix is to, if the initialization value of the data structures matches the default value of just committed memory (=0), do not do anything. Reviewed-by: jwilhelm, brutisso
author tschatzl
date Fri, 10 Oct 2014 15:51:58 +0200
parents 1f1d373cd044
children
comparison
equal deleted inserted replaced
20542:0fcaab91d485 20543:e7d0505c8a30
40 private: 40 private:
41 G1CardCounts* _counts; 41 G1CardCounts* _counts;
42 public: 42 public:
43 void set_cardcounts(G1CardCounts* counts) { _counts = counts; } 43 void set_cardcounts(G1CardCounts* counts) { _counts = counts; }
44 44
45 virtual void on_commit(uint start_idx, size_t num_regions); 45 virtual void on_commit(uint start_idx, size_t num_regions, bool zero_filled);
46 }; 46 };
47 47
48 // Table to track the number of times a card has been refined. Once 48 // Table to track the number of times a card has been refined. Once
49 // a card has been refined a certain number of times, it is 49 // a card has been refined a certain number of times, it is
50 // considered 'hot' and its refinement is delayed by inserting the 50 // considered 'hot' and its refinement is delayed by inserting the