Lines Matching defs:limit
264 * Establishes an object allocation limit in the current thread. Useful for
266 * any allocations. The limit is valid from the return of this method until
269 * @param limit
270 * the new limit. A value of 0 means not a single new object may
271 * be allocated. A value of -1 disables the limit.
273 * @return the previous limit, or -1 if no limit was set
277 public static native int setAllocationLimit(int limit);
280 * Establishes an object allocation limit for the entire VM. Useful for
282 * any allocations. The limit is valid from the return of this method until
285 * @param limit
286 * the new limit. A value of 0 means not a single new object may
287 * be allocated. A value of -1 disables the limit.
289 * @return the previous limit, or -1 if no limit was set
293 public static native int setGlobalAllocationLimit(int limit);