Skip to content

Commit a74c85c

Browse files
Reintroduce getMonitorCount
This is a partial revert of commit 3712b2d which removed getMonitorCount, probably by mistake.
1 parent 1f41012 commit a74c85c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/org/cprover/CProver.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,5 +305,12 @@ public static void arraycopyInPlace(byte[] src, int srcPos, byte[] dest,
305305
for (int i = 0; i < length; i++) {
306306
dest[destPos + i] = src[srcPos + i];
307307
}
308+
309+
/**
310+
* Retrieves the current locking count for 'object'.
311+
*/
312+
public static int getMonitorCount(Object object)
313+
{
314+
return object.cproverMonitorCount;
308315
}
309316
}

0 commit comments

Comments
 (0)