The OpenD Programming Language

SharedBitmappedBlock.allocate

Allocates s bytes of memory and returns it, or null if memory could not be allocated.

The SharedBitmappedBlock cannot allocate more than the given block size. Allocations are satisfied by searching the first unset bit in the bitmap, and atomically setting it. In rare memory pressure scenarios, the allocation could fail.

Meta