Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1SATBCardTableModRefBS.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 | c02ec279b062 |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20542:0fcaab91d485 | 20543:e7d0505c8a30 |
---|---|
134 public: | 134 public: |
135 G1SATBCardTableLoggingModRefBSChangedListener() : _card_table(NULL) { } | 135 G1SATBCardTableLoggingModRefBSChangedListener() : _card_table(NULL) { } |
136 | 136 |
137 void set_card_table(G1SATBCardTableLoggingModRefBS* card_table) { _card_table = card_table; } | 137 void set_card_table(G1SATBCardTableLoggingModRefBS* card_table) { _card_table = card_table; } |
138 | 138 |
139 virtual void on_commit(uint start_idx, size_t num_regions); | 139 virtual void on_commit(uint start_idx, size_t num_regions, bool zero_filled); |
140 }; | 140 }; |
141 | 141 |
142 // Adds card-table logging to the post-barrier. | 142 // Adds card-table logging to the post-barrier. |
143 // Usual invariant: all dirty cards are logged in the DirtyCardQueueSet. | 143 // Usual invariant: all dirty cards are logged in the DirtyCardQueueSet. |
144 class G1SATBCardTableLoggingModRefBS: public G1SATBCardTableModRefBS { | 144 class G1SATBCardTableLoggingModRefBS: public G1SATBCardTableModRefBS { |