MCPcopy Index your code
hub / github.com/nodejs/node / alloc

Method alloc

lib/internal/freelist.js:15–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 }
14
15 alloc() {
16 return this.list.length > 0 ?
17 this.list.pop() :
18 ReflectApply(this.ctor, this, arguments);
19 }
20
21 free(obj) {
22 if (this.list.length < this.max) {

Callers 15

mainFunction · 0.95
tickOnSocketFunction · 0.80
BufferFunction · 0.80
readFunction · 0.80
StringDecoderFunction · 0.80
onParserExecuteCommonFunction · 0.80
encodeFrameHybi17Function · 0.80
constructorMethod · 0.80
writeSyncMethod · 0.80
writeFileSyncMethod · 0.80
truncateSyncMethod · 0.80

Calls 1

popMethod · 0.80

Tested by 3

testFunction · 0.64
testFunction · 0.64
testFunction · 0.64