Skip to content

Commit

Permalink
Merge pull request #7249 from amicic/discardedBytes
Browse files Browse the repository at this point in the history
Discarded bytes in Verbose GC
  • Loading branch information
babsingh committed Feb 6, 2024
2 parents c0cb7ab + 94a5279 commit 2fb53dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gc/verbose/VerboseHandlerOutput.cpp
Expand Up @@ -887,7 +887,7 @@ MM_VerboseHandlerOutput::printAllocationStats(MM_EnvironmentBase* env)
OMRPORT_ACCESS_FROM_OMRPORT(env->getPortLibrary());

enterAtomicReportingBlock();
writer->formatAndOutput(env, 0, "<allocation-stats totalBytes=\"%zu\" >", systemStats->bytesAllocated());
writer->formatAndOutput(env, 0, "<allocation-stats totalBytes=\"%zu\" discardedBytes=\"%zu\" >", systemStats->bytesAllocated(), systemStats->_tlhDiscardedBytes);

if (_extensions->isVLHGC()) {
#if defined(OMR_GC_VLHGC)
Expand Down
1 change: 1 addition & 0 deletions gc/verbose/schema.xsd
Expand Up @@ -344,6 +344,7 @@ xmlns:vgc="http://www.ibm.com/j9/verbosegc">
<element ref="vgc:largest-consumer" maxOccurs="1" minOccurs="0" />
</sequence>
<attribute name="totalBytes" type="integer" use="required" />
<attribute name="discardedBytes" type="integer" use="required" />
</complexType>

<complexType name="allocated-bytes">
Expand Down

0 comments on commit 2fb53dc

Please sign in to comment.