Skip to content

Commit

Permalink
Merge pull request #15727 from jdmpapin/no-hcr-on-extend
Browse files Browse the repository at this point in the history
Stop registering class extend assumptions for HCR guards
  • Loading branch information
0xdaryl committed Aug 19, 2022
2 parents 825c687 + 2152a93 commit b4e513f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/compiler/env/CHTable.cpp
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2021 IBM Corp. and others
* Copyright (c) 2000, 2022 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 Down Expand Up @@ -541,13 +541,13 @@ TR_CHTable::commitVirtualGuard(TR_VirtualGuard *info, List<TR_VirtualGuardSite>

if ((info->getKind() == TR_HCRGuard) || info->mergedWithHCRGuard())
{
guardedClass = info->getThisClass();
TR_OpaqueClassBlock *hcrGuardedClass = info->getThisClass();
ListIterator<TR_VirtualGuardSite> it(&sites);
for (TR_VirtualGuardSite *site = it.getFirst(); site; site = it.getNext())
{
TR_ASSERT(site->getLocation(), "assertion failure");
TR_PatchNOPedGuardSiteOnClassRedefinition
::make(comp->fe(), comp->trPersistentMemory(), guardedClass, site->getLocation(), site->getDestination(), comp->getMetadataAssumptionList());
::make(comp->fe(), comp->trPersistentMemory(), hcrGuardedClass, site->getLocation(), site->getDestination(), comp->getMetadataAssumptionList());
comp->setHasClassRedefinitionAssumptions();
}
// if it's not real HCR guard then we need to register
Expand Down

0 comments on commit b4e513f

Please sign in to comment.