Changes between Initial Version and Version 1 of Ticket #14507, comment 2
- Timestamp:
- Jul 8, 2023, 9:14:25 AM (11 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14507, comment 2
initial v1 9 9 If I understand correctly, as long as you have an `MpalHandle` you can ask the memory manager for the size of the block. Because while `MpalHandle` is just a void pointer, it should still always point to a `MemoryItem`. But when there's just a raw byte pointer...? Probably not. The memory manager only keeps some meta data on each block it allocates, but doesn't actually keep track of them afterwards. 10 10 11 So the "ask memory manager for size" option sis probably out.11 So the "ask memory manager for size" option is probably out. 12 12 13 13 So what about increasing the size of the counter at the beginning of the block? Would it be enough to increase it to the size of `intptr_t`? We can still have it only ''use'' the first byte. 14 15 Though there are a couple of places, particularly in `parseExpession()`, where I'm still not sure exactly what it's doing...