Skip to content

Instantly share code, notes, and snippets.

@n-b
Last active November 13, 2015 09:04
Show Gist options
  • Save n-b/ad0552ee2d39ab2b829d to your computer and use it in GitHub Desktop.
Save n-b/ad0552ee2d39ab2b829d to your computer and use it in GitHub Desktop.
NSDates are (sometimes) tagged pointers
@import Foundation;
int main() {
for (int i=0; i<100; i++) {
NSDate * date = NSDate.date;
printf("%p\n",date);
}
}
0x100200780
0x1002007e0
0x1002007e0
0x1002007e0
0x41bbf5df00faa6ad
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x41bbf5df00faa80d
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x41bbf5df00faa95d
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x41bbf5df00faaabd
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x41bbf5df00faac0d
0x1002007e0
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x41bbf5df00faaebd
0x100102520
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x1002007e0
0x100102520
0x100102520
0x100102520
0x100102520
0x41bbf5df00fab2cd
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x41bbf5df00fab58d
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100102520
0x100500000
0x100500000
Program ended with exit code: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment