ReferenceCountHelperImpl { public Object createReferenceCountOwner() { Object result = null; if (trackReferenceCounts()) { result = new Object(); setReferenceCountOwner(result); } return result; } ReferenceCountHelperImpl(boolean trackRefCounts, boolean trackFreedRefCounts); boolean trackReferenceCounts(); boolean trackFreedReferenceCounts(); void setReferenceCountOwner(Object owner); Object createReferenceCountOwner(); void skipRefCountTracking(); boolean isRefCountTracking(); void unskipRefCountTracking(); List<RefCountChangeInfo> getRefCountInfo(long address); List<RefCountChangeInfo> peekRefCountInfo(long address); List<RefCountChangeInfo> getFreeRefCountInfo(long address);  }
@Test public void doCreateReferenceCountOwnerWithTrackRefsFalseAndTrackFreesTrue() { rchi = getFalseTrue(); Object owner = rchi.createReferenceCountOwner(); assertTrue(owner == null); }
@Test public void doCreateReferenceCountOwnerWithTrackRefsFalseAndTrackFreesFalse() { rchi = getFalseFalse(); Object owner = rchi.createReferenceCountOwner(); assertTrue(owner == null); }