Description[Mac] Implement NSObject zombies.
Apple's NSZombieEnabled setting makes it easier to catch messages to
freed objects, but is mostly only useful in debugging environments.
This implements a facility like NSZombieEnabled with the following
additions:
- The number of outstanding zombies can be configured.
- Classes can opt-in to becoming zombies.
- C++ destructors are correctly called on Leopard.
The goal is to allow us to enable zombies in certain production builds
to help debug some of the message-after-free bugs we have.
BUG=35590, 24987
TEST=everything
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=47674
Patch Set 1 #
Total comments: 14
Patch Set 2 : Cleanups and address TODOs. #
Total comments: 2
Patch Set 3 : Nits, and only enable in DEBUG for now. #
Messages
Total messages: 12 (0 generated)
|