Hacker GitHub

← All repos

opensource-apple/objc4

View on GitHub ↗ ★ 1,194 Objective-C++

5 mentions on Hacker News by 5 people: 0 stories, 5 comments · first 2015-05-05 · latest 2024-08-23

Mentions per year 5 mentions · busiest year 2016 (2)
20082026
  1. …the objc-runtime is open source, you can probably find it there. I think it might be this method? https://github.com/opensource-apple/objc4/blob/cd5e62a5597ea... -- But I'm not sure what GP meant by "at compilation". I suppose the compiler…
  2. …tps://opensource.apple.com/source/syslog/syslog-349.1.1/li... The objective C runtime is open source: https://github.com/opensource-apple/objc4/blob/master/APPLE_... icu, pthread, zlib, and libxml did not even originate at Apple.
  3. …(thread_state_t)&state, &count); return (okay == KERN_SUCCESS) ? state.__rip : PC_SENTINEL; https://github.com/opensource-apple/objc4/blob/master/runtim... If you have a lot of threads running, this could get really expensive. I presume it…
  4. You can do a variant of this in userspace as well: https://github.com/opensource-apple/objc4/blob/master/runtim... Basically, issue a syscall that acquires the PC of all threads. When none of the PCs are in the critical section, then you…
  5. …ends up doing is far more complex — it has to be, to ensure the correctness of its purposes: https://github.com/opensource-apple/objc4/blob/master/runtim...
    comment by ovokinder · 2015-05-05 · in Atomics in Objective-C