From d88aa9433100d948e639e896d5800e610bc15f99 Mon Sep 17 00:00:00 2001 From: sla Date: Thu, 14 Feb 2013 13:08:15 +0100 Subject: [PATCH] 8004840: Jstack seems to output unnecessary information in 7u9 Reviewed-by: dholmes, coleenp, sspitsyn, rbackman --- .../share/classes/sun/jvm/hotspot/memory/CMSCollector.java | 6 ++---- .../sun/jvm/hotspot/memory/CompactibleFreeListSpace.java | 1 - .../src/share/classes/sun/jvm/hotspot/oops/MethodData.java | 1 - .../src/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java | 1 - 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/agent/src/share/classes/sun/jvm/hotspot/memory/CMSCollector.java b/agent/src/share/classes/sun/jvm/hotspot/memory/CMSCollector.java index df35e9064..f28caad66 100644 --- a/agent/src/share/classes/sun/jvm/hotspot/memory/CMSCollector.java +++ b/agent/src/share/classes/sun/jvm/hotspot/memory/CMSCollector.java @@ -61,15 +61,13 @@ public class CMSCollector extends VMObject { CMSBitMap markBitMap = markBitMap(); long addressSize = VM.getVM().getAddressSize(); if ( markBitMap.isMarked(addr) && markBitMap.isMarked(addr.addOffsetTo(1*addressSize)) ) { - System.err.println("Printezis bits are set..."); Address nextOneAddr = markBitMap.getNextMarkedWordAddress(addr.addOffsetTo(2*addressSize)); //return size in bytes long size = (nextOneAddr.addOffsetTo(1*addressSize)).minus(addr); return size; } else { - //missing Printezis marks - System.err.println("Missing Printszis marks..."); - return -1; + //missing Printezis marks + return -1; } } diff --git a/agent/src/share/classes/sun/jvm/hotspot/memory/CompactibleFreeListSpace.java b/agent/src/share/classes/sun/jvm/hotspot/memory/CompactibleFreeListSpace.java index f47f0e811..23cb0bcb7 100644 --- a/agent/src/share/classes/sun/jvm/hotspot/memory/CompactibleFreeListSpace.java +++ b/agent/src/share/classes/sun/jvm/hotspot/memory/CompactibleFreeListSpace.java @@ -191,7 +191,6 @@ public class CompactibleFreeListSpace extends CompactibleSpace { //Find the object size using Printezis bits and skip over long size = collector().blockSizeUsingPrintezisBits(cur); if (size == -1) { - System.err.println("Printezis bits not set..."); break; } cur = cur.addOffsetTo(adjustObjectSizeInBytes(size)); diff --git a/agent/src/share/classes/sun/jvm/hotspot/oops/MethodData.java b/agent/src/share/classes/sun/jvm/hotspot/oops/MethodData.java index 40ede7277..a397ec353 100644 --- a/agent/src/share/classes/sun/jvm/hotspot/oops/MethodData.java +++ b/agent/src/share/classes/sun/jvm/hotspot/oops/MethodData.java @@ -184,7 +184,6 @@ public class MethodData extends Metadata { if (trapReasonName[index] == null) { throw new InternalError("missing reason for " + index); } - System.out.println(trapReasonName[index]); } } diff --git a/agent/src/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java b/agent/src/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java index f944188f4..e663ee8e1 100644 --- a/agent/src/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java +++ b/agent/src/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java @@ -335,7 +335,6 @@ public class ObjectHeap { } if (obj == null) { //Find the object size using Printezis bits and skip over - System.err.println("Finding object size using Printezis bits and skipping over..."); long size = 0; if ( (cmsSpaceOld != null) && cmsSpaceOld.contains(handle) ){ -- GitLab