Path: blob/master/runtime/gc_vlhgc/GlobalCollectionNoScanCardCleaner.hpp
5986 views
1/*******************************************************************************2* Copyright (c) 1991, 2018 IBM Corp. and others3*4* This program and the accompanying materials are made available under5* the terms of the Eclipse Public License 2.0 which accompanies this6* distribution and is available at https://www.eclipse.org/legal/epl-2.0/7* or the Apache License, Version 2.0 which accompanies this distribution and8* is available at https://www.apache.org/licenses/LICENSE-2.0.9*10* This Source Code may also be made available under the following11* Secondary Licenses when the conditions for such availability set12* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU13* General Public License, version 2 with the GNU Classpath14* Exception [1] and GNU General Public License, version 2 with the15* OpenJDK Assembly Exception [2].16*17* [1] https://www.gnu.org/software/classpath/license.html18* [2] http://openjdk.java.net/legal/assembly-exception.html19*20* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception21*******************************************************************************/222324/**25* @file26* @ingroup GC_Modron_Standard27*/2829#if !defined(GLOBALCOLLECTIONNOSCANCARDCLEANER_HPP_)30#define GLOBALCOLLECTIONNOSCANCARDCLEANER_HPP_313233#include "j9.h"34#include "j9cfg.h"35#include "j9modron.h"3637#include "CardCleaner.hpp"3839/**40* @todo Provide typedef documentation41* @ingroup GC_Modron_Standard42*/4344class MM_GlobalCollectionNoScanCardCleaner : public MM_CardCleaner45{46/* Data Members */47private:48protected:49public:5051/* Member Functions */52private:53protected:54/**55* Clean a range of addresses (typically within a span of a card).56* This class is used for updating the RSM based on the previous mark map and scanning modified objects in the next mark map57* (note that next is always a subset of previous so anything not marked in next but marked in previous only requires RSM58* inter-region reference updating while objects marked in both require RSM updates and object scanning to update the next59* mark map).60*61* @param[in] env A thread (typically the thread initializing the GC)62* @param[in] lowAddress low address of the range to be cleaned63* @param[in] highAddress high address of the range to be cleaned64* @param cardToClean[in/out] The card which we are cleaning65*/66virtual void clean(MM_EnvironmentBase *env, void *lowAddress, void *highAddress, Card *cardToClean);6768/**69* @see MM_CardCleaner::getVMStateID()70*/71virtual UDATA getVMStateID() { return OMRVMSTATE_GC_GLOBAL_COLLECTION_NO_SCAN_CARD_CLEANER; }7273public:7475MM_GlobalCollectionNoScanCardCleaner()76: MM_CardCleaner()77{78_typeId = __FUNCTION__;79}80};8182#endif /* GLOBALCOLLECTIONNOSCANCARDCLEANER_HPP_ */838485