MCPcopy Index your code
hub / github.com/RustPython/RustPython / _free_pending_blocks

Method _free_pending_blocks

Lib/multiprocessing/heap.py:258–266  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

256 self._discard_arena(arena)
257
258 def _free_pending_blocks(self):
259 # Free all the blocks in the pending list - called with the lock held.
260 while True:
261 try:
262 block = self._pending_free_blocks.pop()
263 except IndexError:
264 break
265 self._add_free_block(block)
266 self._remove_allocated_block(block)
267
268 def free(self, block):
269 # free a block returned by malloc()

Callers 2

freeMethod · 0.95
mallocMethod · 0.95

Calls 3

_add_free_blockMethod · 0.95
popMethod · 0.45

Tested by

no test coverage detected