MCPcopy Create free account
hub / github.com/google/re2j / get

Method get

java/com/google/re2j/RE2.java:221–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219 // get() returns a machine to use for matching |this|. It uses |this|'s
220 // machine cache if possible, to avoid unnecessary allocation.
221 Machine get() {
222 // Pop a machine off the stack if available.
223 Machine head;
224 do {
225 head = pooled.get();
226 } while (head != null && !pooled.compareAndSet(head, head.next));
227 return head;
228 }
229
230 // Clears the memory associated with this machine.
231 void reset() {

Callers 15

doExecuteMethod · 0.95
addFoldExceptionsMethod · 0.80
dumpRegexpMethod · 0.80
testFindAllUTF8Method · 0.80
testFindAllMethod · 0.80
testFindAllSubmatchMethod · 0.80

Calls

no outgoing calls

Tested by 11

dumpRegexpMethod · 0.64
testFindAllUTF8Method · 0.64
testFindAllMethod · 0.64
testFindAllSubmatchMethod · 0.64
testRE2Method · 0.64
testFowlerMethod · 0.64
testAppendGroupMethod · 0.64