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

Method _remove_allocated_block

Lib/multiprocessing/heap.py:250–256  ·  view source on GitHub ↗
(self, block)

Source from the content-addressed store, hash-verified

248 return start, stop
249
250 def _remove_allocated_block(self, block):
251 arena, start, stop = block
252 blocks = self._allocated_blocks[arena]
253 blocks.remove((start, stop))
254 if not blocks:
255 # Arena is entirely free, discard it from this process
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.

Callers 2

_free_pending_blocksMethod · 0.95
freeMethod · 0.95

Calls 2

_discard_arenaMethod · 0.95
removeMethod · 0.45

Tested by

no test coverage detected