-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for modern targets. #158
base: master
Are you sure you want to change the base?
Conversation
What about a merge? |
How much slower is this now over NSJSONSerializer? |
…rning. The current (at the time of this writing) version of the `clang` static analyzer is complaing that the `objects` pointer is `NULL`. This is a false positive warning from the analyzer.
As apple suggested, we should use public API not to rely on these internal details. https://developer.apple.com/videos/play/wwdc2020/10163/ Advancements in the Objective-C runtime |
Added JSONKitTest for benchmarking this PR. |
Once and for all, JSONKit crash on modern iOS/OSX because it doesn't handle tagged pointers correctly. Thus, when the code try to access ISA pointer directly by dereferencing the object without checking for tagged pointers, it will crash. Period.
This patch handle tagged pointers on both platforms and add 64bit compatibility.
I use it on machines running 24 hours a day for years now on system as old as iOS 4 and OS X 10.6. Without a crash, end of story.