jdk-24/src/hotspot/share/gc/g1/sparsePRT.inline.hpp
Thomas Schatzl 6246b6cc33 8233919: Incrementally calculate the occupied cards in a heap region remembered set
Instead of iterating over the remembered set card containers, continuously update a single counter per remembered set about occupancy.

Reviewed-by: sangheki, sjohanss
2019-12-02 14:21:32 +01:00

37 lines
1.4 KiB
C++

/*
* Copyright (c) 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.
*
* 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.
*
*/
#ifndef SHARE_GC_G1_SPARSEPRT_INLINE_HPP
#define SHARE_GC_G1_SPARSEPRT_INLINE_HPP
#include "gc/g1/g1CollectedHeap.hpp"
#include "gc/g1/sparsePRT.hpp"
inline bool SparsePRT::contains_card(RegionIdx_t region_id, CardIdx_t card_index) const {
return _table->contains_card(region_id, card_index);
}
#endif // SHARE_GC_G1_SPARSEPRT_INLINE_HPP