/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "memory/generation.hpp"
#include "memory/permGen.hpp"
// The specification of a generation. This class also encapsulates
// some generation-specific behavior. This is done here rather than as a
// virtual function of Generation because these methods are needed in
// initialization of the Generations.
friend class VMStructs;
private:
public:
}
// Accessors
// Alignment
}
// Return the number of regions contained in the generation which
// might need to be independently covered by a remembered set.
};
// The specification of a permanent generation. This class is very
// similar to GenerationSpec in use. Due to PermGen's not being a
// true Generation, we cannot combine the spec classes either.
friend class VMStructs;
private:
bool _enable_shared_spaces;
enum {
};
public:
void disable_sharing() {
_enable_shared_spaces = false;
_read_only_size = 0;
_read_write_size = 0;
_misc_data_size = 0;
_misc_code_size = 0;
}
// Accessors
// Max size for user DOES NOT include shared spaces.
// Max size for space allocation DOES include shared spaces.
}
// Need one covered region for the main space, and one for the shared
// spaces (together).
};
#endif // SHARE_VM_MEMORY_GENERATIONSPEC_HPP