< prev index next >

src/hotspot/share/gc/parallel/asPSOldGen.cpp

8199604_cardtablemodrefbs_rename

9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or                                                             
10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License                                                             
11  * version 2 for more details (a copy is included in the LICENSE file that                                                           
12  * accompanied this code).                                                                                                           
13  *                                                                                                                                   
14  * You should have received a copy of the GNU General Public License version                                                         
15  * 2 along with this work; if not, write to the Free Software Foundation,                                                            
16  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.                                                                     
17  *                                                                                                                                   
18  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA                                                           
19  * or visit www.oracle.com if you need additional information or have any                                                            
20  * questions.                                                                                                                        
21  *                                                                                                                                   
22  */                                                                                                                                  
23 
24 #include "precompiled.hpp"                                                                                                           
25 #include "gc/parallel/asPSOldGen.hpp"                                                                                                
26 #include "gc/parallel/parallelScavengeHeap.hpp"                                                                                      
27 #include "gc/parallel/psAdaptiveSizePolicy.hpp"                                                                                      
28 #include "gc/parallel/psMarkSweepDecorator.hpp"                                                                                      
29 #include "gc/shared/cardTableModRefBS.hpp"                                                                                           
30 #include "oops/oop.inline.hpp"                                                                                                       
31 #include "runtime/java.hpp"                                                                                                          
32 #include "utilities/align.hpp"                                                                                                       
33 
34 // Whereas PSOldGen takes the maximum size of the generation                                                                         
35 // (which doesn't change in the case of PSOldGen) as a parameter,                                                                    
36 // ASPSOldGen takes the upper limit on the size of                                                                                   
37 // the generation as a parameter.  In ASPSOldGen the                                                                                 
38 // maximum size of the generation can change as the boundary                                                                         
39 // moves.  The "maximum size of the generation" is still a valid                                                                     
40 // concept since the generation can grow and shrink within that                                                                      
41 // maximum.  There are lots of useful checks that use that                                                                           
42 // maximum.  In PSOldGen the method max_gen_size() returns                                                                           
43 // _max_gen_size (as set by the PSOldGen constructor).  This                                                                         
44 // is how it always worked.  In ASPSOldGen max_gen_size()                                                                            
45 // returned the size of the reserved space for the generation.                                                                       
46 // That can change as the boundary moves.  Below the limit of                                                                        
47 // the size of the generation is passed to the PSOldGen constructor                                                                  
48 // for "_max_gen_size" (have to pass something) but it is not used later.                                                            

9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11  * version 2 for more details (a copy is included in the LICENSE file that
12  * accompanied this code).
13  *
14  * You should have received a copy of the GNU General Public License version
15  * 2 along with this work; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17  *
18  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19  * or visit www.oracle.com if you need additional information or have any
20  * questions.
21  *
22  */
23 
24 #include "precompiled.hpp"
25 #include "gc/parallel/asPSOldGen.hpp"
26 #include "gc/parallel/parallelScavengeHeap.hpp"
27 #include "gc/parallel/psAdaptiveSizePolicy.hpp"
28 #include "gc/parallel/psMarkSweepDecorator.hpp"
29 #include "gc/shared/cardTableBarrierSet.hpp"
30 #include "oops/oop.inline.hpp"
31 #include "runtime/java.hpp"
32 #include "utilities/align.hpp"
33 
34 // Whereas PSOldGen takes the maximum size of the generation
35 // (which doesn't change in the case of PSOldGen) as a parameter,
36 // ASPSOldGen takes the upper limit on the size of
37 // the generation as a parameter.  In ASPSOldGen the
38 // maximum size of the generation can change as the boundary
39 // moves.  The "maximum size of the generation" is still a valid
40 // concept since the generation can grow and shrink within that
41 // maximum.  There are lots of useful checks that use that
42 // maximum.  In PSOldGen the method max_gen_size() returns
43 // _max_gen_size (as set by the PSOldGen constructor).  This
44 // is how it always worked.  In ASPSOldGen max_gen_size()
45 // returned the size of the reserved space for the generation.
46 // That can change as the boundary moves.  Below the limit of
47 // the size of the generation is passed to the PSOldGen constructor
48 // for "_max_gen_size" (have to pass something) but it is not used later.
< prev index next >