Skip to content

Commit 8e7dd08

Browse files
committed
Debug
Signed-off-by: lhu <linhu@ca.ibm.com>
1 parent aceaeca commit 8e7dd08

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

runtime/gc_vlhgc/CopyForwardScheme.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5671,7 +5671,17 @@ MM_CopyForwardScheme::setAllocationAgeForMergedRegion(MM_EnvironmentVLHGC *env,
56715671

56725672
if (_extensions->tarokAllocationAgeEnabled) {
56735673
Assert_MM_true(newAllocationAge < _extensions->compactGroupPersistentStats[compactGroup]._maxAllocationAge);
5674-
Assert_MM_true((MM_CompactGroupManager::getRegionAgeFromGroup(env, compactGroup) == 0) || (newAllocationAge >= _extensions->compactGroupPersistentStats[compactGroup - 1]._maxAllocationAge));
5674+
5675+
if ((MM_CompactGroupManager::getRegionAgeFromGroup(env, compactGroup) != 0) /*eden region */
5676+
&& (_extensions->compactGroupPersistentStats[compactGroup - 1]._maxAllocationAge != _extensions->tarokMaximumAgeInBytes) /* tenure region */
5677+
&& (newAllocationAge < _extensions->compactGroupPersistentStats[compactGroup - 1]._maxAllocationAge)) {
5678+
PORT_ACCESS_FROM_ENVIRONMENT(env);
5679+
j9tty_printf(PORTLIB, "setAllocationAgeForMergedRegion newAllocationAge=%zu, region->getLowerAgeBound()=%zu, _extensions->compactGroupPersistentStats[%zu]._maxAllocationAge=%zu, _extensions->compactGroupPersistentStats[%zu]._maxAllocationAge=%zu)\n",
5680+
newAllocationAge, region->getLowerAgeBound(), compactGroup - 1, _extensions->compactGroupPersistentStats[compactGroup - 1]._maxAllocationAge, compactGroup, _extensions->compactGroupPersistentStats[compactGroup]._maxAllocationAge);
5681+
Assert_MM_true((MM_CompactGroupManager::getRegionAgeFromGroup(env, compactGroup) == 0) /*eden region */
5682+
|| _extensions->compactGroupPersistentStats[compactGroup - 1]._maxAllocationAge == _extensions->tarokMaximumAgeInBytes /* tenure region */
5683+
|| (newAllocationAge >= _extensions->compactGroupPersistentStats[compactGroup - 1]._maxAllocationAge)); /*survivior region */
5684+
}
56755685
}
56765686

56775687
uintptr_t logicalAge = 0;

0 commit comments

Comments
 (0)