roc-streaming / roc-toolkit

Real-time audio streaming over the network.
https://roc-streaming.org
Mozilla Public License 2.0
1.03k stars 205 forks source link

Implement memory guards in heap arena #583

Closed gavv closed 9 months ago

gavv commented 9 months ago

core::HeapArena implements IArena interface using regular heap (malloc and free).

It would be nice to implement for HeapArena the same safety checks as described here for Pool: #582 (with the only difference that heap arena has "chunks" instead of "slots").

nolan-veed commented 9 months ago

I'll do this one too.

nolan-veed commented 9 months ago

This one can be closed now?

gavv commented 9 months ago

IIRC we didn't implement ownership check yet.

nolan-veed commented 9 months ago

Of course, we need that too here. I'm on it.

gavv commented 4 months ago

@nolan-veed FYI: today arena guards have caught a bug! :)

nolan-veed commented 4 months ago

@nolan-veed FYI: today arena guards have caught a bug! :)

I can finally have some closure! Just kidding... xD Good to know - and thanks for informing me.