Path: blob/master/runtime/gc_glue_java/CollectorLanguageInterfaceImpl.hpp
5985 views
1/*******************************************************************************2* Copyright (c) 1991, 2019 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*******************************************************************************/2223#ifndef COLLECTORLANGUAGEINTERFACEJAVA_HPP_24#define COLLECTORLANGUAGEINTERFACEJAVA_HPP_2526#include "j9.h"27#include "CollectorLanguageInterface.hpp"28#include "CompactScheme.hpp"29#include "EnvironmentBase.hpp"30#include "GCExtensions.hpp"31#include "HeapRegionDescriptorStandard.hpp"32#include "HeapWalker.hpp"33#include "MarkingScheme.hpp"34#include "ScanClassesMode.hpp"3536class GC_ObjectScanner;37class GC_VMThreadIterator;38class MM_CompactScheme;39class MM_EnvironmentStandard;40class MM_ForwardedHeader;41class MM_MemorySubSpaceSemiSpace;42class MM_Scavenger;43class MM_ParallelSweepScheme;4445/**46* Class representing a collector language interface. This implements the API between the OMR47* functionality and the language being implemented.48* @ingroup GC_Base49*/50class MM_CollectorLanguageInterfaceImpl : public MM_CollectorLanguageInterface {51private:52MM_GCExtensions *_extensions;5354protected:55public:56private:57protected:58bool initialize(MM_EnvironmentBase *env);59void tearDown(MM_EnvironmentBase *env);6061MM_CollectorLanguageInterfaceImpl(J9JavaVM *vm)62: MM_CollectorLanguageInterface()63,_extensions(MM_GCExtensions::getExtensions(vm))64{65_typeId = __FUNCTION__;66}6768public:69static MM_CollectorLanguageInterfaceImpl *newInstance(MM_EnvironmentBase *env);70virtual void kill(MM_EnvironmentBase *env);7172static MM_CollectorLanguageInterfaceImpl *getInterface(MM_CollectorLanguageInterface *cli) { return (MM_CollectorLanguageInterfaceImpl *)cli; }73};7475#endif /* COLLECTORLANGUAGEINTERFACEJAVA_HPP_ */76777879