Skip to content

Commit

Permalink
Merge pull request #5055 from jason-hall/metronome13
Browse files Browse the repository at this point in the history
Modify GlobalAllocationManagerRealtime for moving to OMR
  • Loading branch information
dmitripivkine committed Mar 11, 2019
2 parents 914d634 + d5727a5 commit 7f093b5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions runtime/gc_realtime/GlobalAllocationManagerRealtime.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 1991, 2014 IBM Corp. and others
* Copyright (c) 1991, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand All @@ -20,19 +20,14 @@
* 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-exception
*******************************************************************************/

#include "j9port.h"
#include "ModronAssertions.h"

#include "AllocationContextRealtime.hpp"
#include "EnvironmentRealtime.hpp"
#include "GCExtensions.hpp"

#include "GlobalAllocationManagerRealtime.hpp"

MM_GlobalAllocationManagerRealtime *
MM_GlobalAllocationManagerRealtime::newInstance(MM_EnvironmentBase *env, MM_RegionPoolSegregated *regionPool)
{
MM_GlobalAllocationManagerRealtime *allocationManager = (MM_GlobalAllocationManagerRealtime *)env->getForge()->allocate(sizeof(MM_GlobalAllocationManagerSegregated), MM_AllocationCategory::FIXED, J9_GET_CALLSITE());
MM_GlobalAllocationManagerRealtime *allocationManager = (MM_GlobalAllocationManagerRealtime *)env->getForge()->allocate(sizeof(MM_GlobalAllocationManagerSegregated), MM_AllocationCategory::FIXED, OMR_GET_CALLSITE());
if (allocationManager) {
allocationManager = new(allocationManager) MM_GlobalAllocationManagerRealtime(env);
if (!allocationManager->initialize(env, regionPool)) {
Expand Down

0 comments on commit 7f093b5

Please sign in to comment.