3 ms·
Edit-period has expired, so I'm replying to myself. The sentinel pointers work like this: the zero page is assumed to never point to a valid Ruby object (NULL
by loeg 14y ago
Edit-period has expired, so I'm replying to myself.
The sentinel pointers work like this: the zero page is assumed to never point to a valid Ruby object (NULL through NULL+PAGE_SIZE-1), so they just use some otherwise "pointer" shaped numbers in that range as special values (nil, true, false).