annotate src/hotspot/share/gc/shared/cardGeneration.inline.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 fec48bf5a827
children 9807daeb47c4
rev   line source
brutisso@28033 1 /*
pliden@30764 2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
brutisso@28033 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
brutisso@28033 4 *
brutisso@28033 5 * This code is free software; you can redistribute it and/or modify it
brutisso@28033 6 * under the terms of the GNU General Public License version 2 only, as
brutisso@28033 7 * published by the Free Software Foundation.
brutisso@28033 8 *
brutisso@28033 9 * This code is distributed in the hope that it will be useful, but WITHOUT
brutisso@28033 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
brutisso@28033 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
brutisso@28033 12 * version 2 for more details (a copy is included in the LICENSE file that
brutisso@28033 13 * accompanied this code).
brutisso@28033 14 *
brutisso@28033 15 * You should have received a copy of the GNU General Public License version
brutisso@28033 16 * 2 along with this work; if not, write to the Free Software Foundation,
brutisso@28033 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
brutisso@28033 18 *
brutisso@28033 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
brutisso@28033 20 * or visit www.oracle.com if you need additional information or have any
brutisso@28033 21 * questions.
brutisso@28033 22 *
brutisso@28033 23 */
brutisso@28033 24
pliden@30764 25 #ifndef SHARE_VM_GC_SHARED_CARDGENERATION_INLINE_HPP
pliden@30764 26 #define SHARE_VM_GC_SHARED_CARDGENERATION_INLINE_HPP
brutisso@28033 27
pliden@30764 28 #include "gc/shared/cardGeneration.hpp"
pliden@30764 29 #include "gc/shared/space.hpp"
brutisso@28033 30
brutisso@28033 31 inline size_t CardGeneration::capacity() const {
brutisso@28033 32 return space()->capacity();
brutisso@28033 33 }
brutisso@28033 34
brutisso@28033 35 inline size_t CardGeneration::used() const {
brutisso@28033 36 return space()->used();
brutisso@28033 37 }
brutisso@28033 38
brutisso@28033 39 inline size_t CardGeneration::free() const {
brutisso@28033 40 return space()->free();
brutisso@28033 41 }
brutisso@28033 42
brutisso@28033 43 inline MemRegion CardGeneration::used_region() const {
brutisso@28033 44 return space()->used_region();
brutisso@28033 45 }
brutisso@28033 46
brutisso@28033 47 inline bool CardGeneration::is_in(const void* p) const {
brutisso@28033 48 return space()->is_in(p);
brutisso@28033 49 }
brutisso@28033 50
brutisso@28033 51 inline CompactibleSpace* CardGeneration::first_compaction_space() const {
brutisso@28033 52 return space();
brutisso@28033 53 }
brutisso@28033 54
pliden@30764 55 #endif // SHARE_VM_GC_SHARED_CARDGENERATION_INLINE_HPP