MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/multiprocessing/heap.py:326–329  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

324 _heap = Heap()
325
326 def __init__(self, size):
327 block = BufferWrapper._heap.malloc(size)
328 self._state = (block, size)
329 util.Finalize(self, BufferWrapper._heap.free, args=(block,))
330
331 def create_memoryview(self):
332 (arena, start, stop), size = self._state

Callers

nothing calls this directly

Calls 1

mallocMethod · 0.80

Tested by

no test coverage detected