Lines Matching refs:instances
335 * Creates {@link ThreadPolicy} instances. Methods whose names start
546 // Map from class to max number of allowed instances in memory.
563 * Creates {@link VmPolicy} instances. Methods whose names start
601 * Set an upper bound on how many instances of a class can be in memory
1463 long instances = VMDebug.countInstancesOfClass(klass, false);
1464 if (instances <= limit) {
1467 Throwable tr = new InstanceCountViolation(klass, instances, limit);
1974 * Returns an object that is used to track instances of activites.
2035 // This is the work that we are trying to avoid by tracking the object instances
2046 long instances = VMDebug.countInstancesOfClass(klass, false);
2047 if (instances > limit) {
2048 Throwable tr = new InstanceCountViolation(klass, instances, limit);
2082 * List of tags from active Span instances during this
2108 * If this is a instance count violation, the number of instances in memory,
2264 // leaked instances came from. We might in the future, but for
2277 public InstanceCountViolation(Class klass, long instances, int limit) {
2278 super(klass.toString() + "; instances=" + instances + "; limit=" + limit);
2281 mInstances = instances;