MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / allocate

Method allocate

src/main/java/net/optifine/util/ArrayCache.java:18–28  ·  view source on GitHub ↗
(int size)

Source from the content-addressed store, hash-verified

16 }
17
18 public synchronized Object allocate(int size)
19 {
20 Object object = this.cache.pollLast();
21
22 if (object == null || Array.getLength(object) < size)
23 {
24 object = Array.newInstance(this.elementClass, size);
25 }
26
27 return object;
28 }
29
30 public synchronized void free(Object arr)
31 {

Callers 3

renderStartMethod · 0.80
readImageToBufferMethod · 0.80
readIconImageMethod · 0.80

Calls 2

getLengthMethod · 0.80
newInstanceMethod · 0.45

Tested by

no test coverage detected