Skip to content

Commit 8427479

Browse files
Removed the number of classes that are in the image heap from the build output.
1 parent 428b760 commit 8427479

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

docs/reference-manual/native-image/BuildOutput.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ GraalVM Native Image: Generating 'helloworld' (executable)...
2929
[6/7] Compiling methods... [**] (3.7s @ 2.38GB)
3030
[7/7] Creating image... (2.1s @ 1.04GB)
3131
3.69MB (27.19%) for code area: 6,955 compilation units
32-
5.86MB (43.18%) for image heap: 1,545 classes and 80,528 objects
32+
5.86MB (43.18%) for image heap: 80,528 objects
3333
3.05MB (22.46%) for debug info generated in 1.0s
3434
997.25KB ( 7.18%) for other data
3535
13.57MB in total

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/NativeImageGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ private void doRun(Map<Method, CEntryPointData> entryPoints,
707707
AfterImageWriteAccessImpl afterConfig = new AfterImageWriteAccessImpl(featureHandler, loader, hUniverse, inv, tmpDir, image.getImageKind(), debug);
708708
featureHandler.forEachFeature(feature -> feature.afterImageWrite(afterConfig));
709709
}
710-
reporter.printCreationEnd(image.getImageSize(), bb.getUniverse(), heap.getObjectCount(), image.getImageHeapSize(), codeCache.getCodeCacheSize(),
710+
reporter.printCreationEnd(image.getImageSize(), heap.getObjectCount(), image.getImageHeapSize(), codeCache.getCodeCacheSize(),
711711
numCompilations, image.getDebugInfoSize());
712712
if (breakdownsPrinter != null) {
713713
breakdownsPrinter.reset().flushln();

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ProgressReporter.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public void setDebugInfoTimer(Timer timer) {
380380
this.debugInfoTimer = timer;
381381
}
382382

383-
public void printCreationEnd(int imageSize, AnalysisUniverse universe, int numHeapObjects, long imageHeapSize, int codeCacheSize,
383+
public void printCreationEnd(int imageSize, int numHeapObjects, long imageHeapSize, int codeCacheSize,
384384
int numCompilations, int debugInfoSize) {
385385
Timer imageTimer = getTimer(TimerCollection.Registry.IMAGE);
386386
Timer writeTimer = getTimer(TimerCollection.Registry.WRITE);
@@ -389,9 +389,8 @@ public void printCreationEnd(int imageSize, AnalysisUniverse universe, int numHe
389389
String format = "%9s (%5.2f%%) for ";
390390
l().a(format, Utils.bytesToHuman(codeCacheSize), codeCacheSize / (double) imageSize * 100)
391391
.doclink("code area", "#glossary-code-area").a(":%,9d compilation units", numCompilations).println();
392-
long numInstantiatedClasses = universe.getTypes().stream().filter(t -> t.isInstantiated()).count();
393392
l().a(format, Utils.bytesToHuman(imageHeapSize), imageHeapSize / (double) imageSize * 100)
394-
.doclink("image heap", "#glossary-image-heap").a(":%,8d classes and %,d objects", numInstantiatedClasses, numHeapObjects).println();
393+
.doclink("image heap", "#glossary-image-heap").a(": %,8d objects", numHeapObjects).println();
395394
if (debugInfoSize > 0) {
396395
DirectPrinter l = l().a(format, Utils.bytesToHuman(debugInfoSize), debugInfoSize / (double) imageSize * 100)
397396
.doclink("debug info", "#glossary-debug-info");

0 commit comments

Comments
 (0)