src/hotspot/share/gc/parallel/adjoiningGenerations.cpp
changeset 54264 41af8d0546bc
parent 53117 37930c6ba6d7
child 54678 93f09ca4a7f8
equal deleted inserted replaced
54263:3cabb47758c9 54264:41af8d0546bc
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   117     _old_gen->initialize(old_rs, alignment, "old", 1);
   117     _old_gen->initialize(old_rs, alignment, "old", 1);
   118     assert(old_gen()->gen_size_limit() == old_rs.size(), "Consistency check");
   118     assert(old_gen()->gen_size_limit() == old_rs.size(), "Consistency check");
   119   }
   119   }
   120 }
   120 }
   121 
   121 
   122 AdjoiningGenerations::AdjoiningGenerations() { }
   122 AdjoiningGenerations::AdjoiningGenerations(): _young_gen(NULL), _old_gen(NULL), _virtual_spaces(NULL) { }
   123 
   123 
   124 size_t AdjoiningGenerations::reserved_byte_size() {
   124 size_t AdjoiningGenerations::reserved_byte_size() {
   125   return virtual_spaces()->reserved_space().size();
   125   return virtual_spaces()->reserved_space().size();
   126 }
   126 }
   127 
   127