Skip to content

Commit

Permalink
New field TLHRemainderCount in CopyForwardStatsCore
Browse files Browse the repository at this point in the history
	Report how many TLHRemainder has been created during CopyForward.

Signed-off-by: Lin Hu <linhu@ca.ibm.com>
  • Loading branch information
LinHu2016 committed Oct 5, 2021
1 parent 1ec1164 commit fdb29c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gc/stats/CopyForwardStatsCore.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 1991, 2018 IBM Corp. and others
* Copyright (c) 1991, 2021 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 @@ -53,6 +53,7 @@ class MM_CopyForwardStatsCore
uintptr_t _copyObjectsTotal; /**< Total count of objects copied into survivor */
uintptr_t _copyBytesTotal; /**< Total bytes copied into survivor */
uintptr_t _copyDiscardBytesTotal; /**< total bytes discarded due to copying into survivor */
uintptr_t _TLHRemainderCount;
uintptr_t _scanObjectsTotal; /**< Total count of objects scanned in abort recovery */
uintptr_t _scanBytesTotal; /**< Total bytes scanned in abort recovery */

Expand Down Expand Up @@ -207,6 +208,7 @@ class MM_CopyForwardStatsCore
_copyObjectsTotal = 0;
_copyBytesTotal = 0;
_copyDiscardBytesTotal = 0;
_TLHRemainderCount = 0;
_scanObjectsTotal = 0;
_scanBytesTotal = 0;

Expand Down Expand Up @@ -300,6 +302,7 @@ class MM_CopyForwardStatsCore
_copyObjectsTotal += stats->_copyObjectsTotal;
_copyBytesTotal += stats->_copyBytesTotal;
_copyDiscardBytesTotal += stats->_copyDiscardBytesTotal;
_TLHRemainderCount += stats->_TLHRemainderCount;
_scanObjectsTotal += stats->_scanObjectsTotal;
_scanBytesTotal += stats->_scanBytesTotal;

Expand Down Expand Up @@ -342,6 +345,7 @@ class MM_CopyForwardStatsCore
,_copyObjectsTotal(0)
,_copyBytesTotal(0)
,_copyDiscardBytesTotal(0)
,_TLHRemainderCount(0)
,_scanObjectsTotal(0)
,_scanBytesTotal(0)
,_copyObjectsEden(0)
Expand Down

0 comments on commit fdb29c5

Please sign in to comment.