< prev index next >
src/hotspot/share/gc/parallel/psYoungGen.cpp
8221260: Initialize more class members on construction, remove some unused ones
Reviewed-by:
/*
! * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
/*
! * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
***************
#include "logging/log.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/java.hpp"
#include "utilities/align.hpp"
! PSYoungGen::PSYoungGen(size_t initial_size,
! size_t min_size,
! size_t max_size) :
_init_gen_size(initial_size),
_min_gen_size(min_size),
! _max_gen_size(max_size)
{}
void PSYoungGen::initialize_virtual_space(ReservedSpace rs, size_t alignment) {
assert(_init_gen_size != 0, "Should have a finite size");
_virtual_space = new PSVirtualSpace(rs, alignment);
#include "logging/log.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/java.hpp"
#include "utilities/align.hpp"
! PSYoungGen::PSYoungGen(size_t initial_size, size_t min_size, size_t max_size) :
! _reserved(),
! _virtual_space(NULL),
! _eden_space(NULL),
! _from_space(NULL),
! _to_space(NULL),
! _eden_mark_sweep(NULL),
! _from_mark_sweep(NULL),
! _to_mark_sweep(NULL),
_init_gen_size(initial_size),
_min_gen_size(min_size),
! _max_gen_size(max_size),
! _gen_counters(NULL),
! _eden_counters(NULL),
! _from_counters(NULL),
! _to_counters(NULL)
{}
void PSYoungGen::initialize_virtual_space(ReservedSpace rs, size_t alignment) {
assert(_init_gen_size != 0, "Should have a finite size");
_virtual_space = new PSVirtualSpace(rs, alignment);
< prev index next >