incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From monte...@apache.org
Subject svn commit: r887286 - /incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JMonitor.java
Date Fri, 04 Dec 2009 17:37:33 GMT
Author: monteith
Date: Fri Dec  4 17:37:33 2009
New Revision: 887286

URL: http://svn.apache.org/viewvc?rev=887286&view=rev
Log:
Fix unowned monitors.

Modified:
    incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JMonitor.java

Modified: incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JMonitor.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JMonitor.java?rev=887286&r1=887285&r2=887286&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JMonitor.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/javaruntime/model/JMonitor.java
Fri Dec  4 17:37:33 2009
@@ -93,7 +93,8 @@
 
 	@Override
 	public JavaThread getOwner() throws CorruptDataException {
-		return model.getThread(owner);
+		// Return null if owner is 0 - otherwise a JThread with id 0 is created.
+		return owner != 0 ? model.getThread(owner) : null;
 	}
 	
 	public void setObject(long obj){



Mime
View raw message