[jboss-cvs] jboss-profiler/jvmti-lib/java-src/org/jboss/profiler/jvmti ...
Clebert Suconic
csuconic at jboss.com
Wed Sep 12 19:56:20 EDT 2007
User: csuconic
Date: 07/09/12 19:56:20
Modified: jvmti-lib/java-src/org/jboss/profiler/jvmti
JVMTIInterface.java
Log:
Improving output
Revision Changes Path
1.43 +19 -3 jboss-profiler/jvmti-lib/java-src/org/jboss/profiler/jvmti/JVMTIInterface.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: JVMTIInterface.java
===================================================================
RCS file: /cvsroot/jboss/jboss-profiler/jvmti-lib/java-src/org/jboss/profiler/jvmti/JVMTIInterface.java,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -b -r1.42 -r1.43
--- JVMTIInterface.java 12 Sep 2007 22:40:47 -0000 1.42
+++ JVMTIInterface.java 12 Sep 2007 23:56:20 -0000 1.43
@@ -66,6 +66,15 @@
}
}
+ private boolean exploreProtectionDomain = false;
+
+ public boolean isExploreProtectionDomain() {
+ return exploreProtectionDomain;
+ }
+
+ public void setExploreProtectionDomain(boolean exploreProtectionDomain) {
+ this.exploreProtectionDomain = exploreProtectionDomain;
+ }
private void addTo(Collection coll, Field[] obj)
{
@@ -461,8 +470,15 @@
nextReference = referenceHolder;
break;
case JVMTICallBack.JVMTI_REFERENCE_PROTECTION_DOMAIN://Reference from a class to its protection domain.
+ if (exploreProtectionDomain)
+ {
out.println("<br>" + level +"ProtectionDomain@" + callToString(referenceHolder,useToString) );
nextReference = referenceHolder;
+ }
+ else
+ {
+ nextReference = null;
+ }
break;
case JVMTICallBack.JVMTI_REFERENCE_INTERFACE://Reference from a class to one of its interfaces.
out.println("<br>" + level +"ReferenceInterface@" + callToString(referenceHolder,useToString) );
More information about the jboss-cvs-commits
mailing list