annotate src/hotspot/share/gc/shared/gcArguments.hpp @ 52321:31b159f30fb2

8180193: Make marking bitmap code available to other GCs Reviewed-by: shade, stefank
author rkennke
date Wed, 29 Aug 2018 20:15:09 +0200
parents db050c11c3b5
children bb03098c4dde
rev   line source
rkennke@48089 1 /*
pliden@50097 2 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
rkennke@48089 3 * Copyright (c) 2017, Red Hat, Inc. and/or its affiliates.
rkennke@48089 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
rkennke@48089 5 *
rkennke@48089 6 * This code is free software; you can redistribute it and/or modify it
rkennke@48089 7 * under the terms of the GNU General Public License version 2 only, as
rkennke@48089 8 * published by the Free Software Foundation.
rkennke@48089 9 *
rkennke@48089 10 * This code is distributed in the hope that it will be useful, but WITHOUT
rkennke@48089 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
rkennke@48089 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
rkennke@48089 13 * version 2 for more details (a copy is included in the LICENSE file that
rkennke@48089 14 * accompanied this code).
rkennke@48089 15 *
rkennke@48089 16 * You should have received a copy of the GNU General Public License version
rkennke@48089 17 * 2 along with this work; if not, write to the Free Software Foundation,
rkennke@48089 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
rkennke@48089 19 *
rkennke@48089 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
rkennke@48089 21 * or visit www.oracle.com if you need additional information or have any
rkennke@48089 22 * questions.
rkennke@48089 23 *
rkennke@48089 24 */
rkennke@48089 25
rkennke@48089 26 #ifndef SHARE_GC_SHARED_GCARGUMENTS_HPP
rkennke@48089 27 #define SHARE_GC_SHARED_GCARGUMENTS_HPP
rkennke@48089 28
rkennke@48089 29 #include "memory/allocation.hpp"
rkennke@48089 30
rkennke@48101 31 class CollectedHeap;
rkennke@48101 32
pliden@50124 33 class GCArguments {
rkennke@48101 34 protected:
rkennke@48101 35 template <class Heap, class Policy>
rkennke@48101 36 CollectedHeap* create_heap_with_policy();
rkennke@48101 37
rkennke@48089 38 public:
pliden@50124 39 virtual void initialize();
rkennke@48089 40 virtual size_t conservative_max_heap_alignment() = 0;
rkennke@48101 41 virtual CollectedHeap* create_heap() = 0;
rkennke@48089 42 };
rkennke@48089 43
rkennke@48089 44 #endif // SHARE_GC_SHARED_GCARGUMENTS_HPP