←back to thread

95 points ingve | 1 comments | | HN request time: 0s | source
Show context
mkw5053 ◴[] No.44567439[source]
I used to work closely with the Android team at Unity, and in my experience, shifting large native codebases to a new page size often uncovers subtle runtime assumptions beyond just replacing hardcoded constants like PAGE_SIZE. I’m optimistic Google’s tooling will help a lot, but interested about how effectively it catches these more nuanced compatibility issues like custom allocators or memory pooling tuned for 4K boundaries.
replies(2): >>44568557 #>>44573383 #
HPsquared ◴[] No.44568557[source]
Could they find those by setting page size to some absurdly large value like 1MB?
replies(2): >>44568979 #>>44571706 #
majke ◴[] No.44568979[source]
A lot of software wont work if you do that. Many jits and memory allocators have opinions on page size. Also tagged pointers are very common.
replies(3): >>44569427 #>>44571507 #>>44572184 #
1. bigstrat2003 ◴[] No.44571507[source]
This just provides yet another example of why tagged pointers are a terrible idea and shouldn't be used. Someday, more of the address space will get used and your software will break.