private void readContendedMonitor(JThread t) throws IOException {
long contendedObject = variablesIn.readLong();
log.log(Level.FINEST, "Contended object: "
+ Long.toHexString(contendedObject));
if (contendedObject != CJVMTI_NULL_OBJECT) {
JMonitor monitor = model.getMonitor(contendedObject);
long cPos = variablesIn.getStreamPosition();
nreadReference(contendedObject);
variablesIn.seek(cPos);
monitor.addWaiter(t.id);
monitor.setObject(contendedObject);
}
}