Re:Concurrent Memory Deallocation in the Objective-C Runtime
by pron on Saturday June 06, 2015 @03:47PM
(#9671980)
> a range of PC addresses within a function would do just as well
Yes, but you'll need to know where those ranges are (i.e. you'll need some feedback from the compiler), and then be very careful that no tool injects any instructions into, or moves code around your executable/library.
I don't understand the objection about inlining--could you explain? You could in principle not use function boundaries to delimit the critical section: a range of PC addresses within a function would do just as well.