Changes between Initial Version and Version 1 of Ticket #14507, comment 2


Ignore:
Timestamp:
Jul 8, 2023, 9:14:25 AM (11 months ago)
Author:
eriktorbjorn

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14507, comment 2

    initial v1  
    99If 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.
    1010
    11 So the "ask memory manager for size" options is probably out.
     11So the "ask memory manager for size" option is probably out.
    1212
    1313So 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
     15Though there are a couple of places, particularly in `parseExpession()`, where I'm still not sure exactly what it's doing...