3 ms·
I am not sure, but if my memory serves me right somewhere in the amd64 specification there was something specifically forbidding the use of the uppermost 16 bit
by znpy 8y ago
I am not sure, but if my memory serves me right somewhere in the amd64 specification there was something specifically forbidding the use of the uppermost 16 bit to implement tagged pointers, and this is one of the reasons why tagged-pointer-based runtimes haven't been spawning up like mushrooms after the amd64 ISA was implemented.
- user2994cb 8y agoUseful discussion on Stack Overflow: https://stackoverflow.com/questions/16198700/using-the-extra-16-bits-in-64-bit-pointers https://stackoverflow.com/questions/16198700/using-the-extra... Upshot: you can probably get away with it if you are careful to canonicalize pointers before using them.
- znpy 8y agothank you.