< prev index next >

src/share/vm/memory/tenuredGeneration.cpp

Print this page




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc_implementation/shared/collectorCounters.hpp"
  27 #include "gc_implementation/shared/gcTimer.hpp"
  28 #include "gc_implementation/shared/parGCAllocBuffer.hpp"
  29 #include "memory/allocation.inline.hpp"
  30 #include "memory/blockOffsetTable.inline.hpp"
  31 #include "memory/cardGeneration.inline.hpp"
  32 #include "memory/generationSpec.hpp"
  33 #include "memory/genMarkSweep.hpp"
  34 #include "memory/genOopClosures.inline.hpp"
  35 #include "memory/space.hpp"
  36 #include "memory/tenuredGeneration.inline.hpp"
  37 #include "oops/oop.inline.hpp"
  38 #include "runtime/java.hpp"
  39 #include "utilities/macros.hpp"
  40 
  41 TenuredGeneration::TenuredGeneration(ReservedSpace rs,
  42                                      size_t initial_byte_size, int level,
  43                                      GenRemSet* remset) :
  44   CardGeneration(rs, initial_byte_size, level, remset)
  45 {
  46   HeapWord* bottom = (HeapWord*) _virtual_space.low();
  47   HeapWord* end    = (HeapWord*) _virtual_space.high();
  48   _the_space  = new TenuredSpace(_bts, MemRegion(bottom, end));




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc_implementation/shared/collectorCounters.hpp"
  27 #include "gc_implementation/shared/gcTimer.hpp"

  28 #include "memory/allocation.inline.hpp"
  29 #include "memory/blockOffsetTable.inline.hpp"
  30 #include "memory/cardGeneration.inline.hpp"
  31 #include "memory/generationSpec.hpp"
  32 #include "memory/genMarkSweep.hpp"
  33 #include "memory/genOopClosures.inline.hpp"
  34 #include "memory/space.hpp"
  35 #include "memory/tenuredGeneration.inline.hpp"
  36 #include "oops/oop.inline.hpp"
  37 #include "runtime/java.hpp"
  38 #include "utilities/macros.hpp"
  39 
  40 TenuredGeneration::TenuredGeneration(ReservedSpace rs,
  41                                      size_t initial_byte_size, int level,
  42                                      GenRemSet* remset) :
  43   CardGeneration(rs, initial_byte_size, level, remset)
  44 {
  45   HeapWord* bottom = (HeapWord*) _virtual_space.low();
  46   HeapWord* end    = (HeapWord*) _virtual_space.high();
  47   _the_space  = new TenuredSpace(_bts, MemRegion(bottom, end));


< prev index next >