by conradev · 13y ago · 0 comments
[1] http://www.mikeash.com/pyblog/friday-qa-2013-09-27-arm64-and...
You can use them as tagged pointers [1], and I think that Apple's Obj-C runtime actually does this. (I don't know for sure, as it's not really something I'm interested in, but I think I saw an article about it. I could be wrong.)
The wackiest thing about that is... if there are multiple pointers to an object (kind of the point of reference counting) and the reference count is part of the pointer... well... I don't really see that working well at all. OTOH I could see there being some optimization that means some callers might not need to modify the global reference count, only the one in their reference.
Mike Ash wrote an excellent summary:
http://www.mikeash.com/pyblog/friday-qa-2013-09-27-arm64-and...