diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2012-11-27 23:02:53 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-11-27 23:02:53 +0000 |
| commit | fbd19749a34546865cf40bd2855861e16ca1a801 (patch) | |
| tree | d5b892fc1d9b638cb423ca83d041e39eb1707187 /lldb/source/Core/ValueObjectDynamicValue.cpp | |
| parent | 41fadd56b8da8500e62a3ddb113dee847c75335c (diff) | |
| download | bcm5719-llvm-fbd19749a34546865cf40bd2855861e16ca1a801.tar.gz bcm5719-llvm-fbd19749a34546865cf40bd2855861e16ca1a801.zip | |
objective-C arc: load of a __weak object happens via call to
objc_loadWeak. This retains and autorelease the weakly-refereced
object. This hidden autorelease sometimes makes __weak variable alive even
after the weak reference is erased, because the object is still referenced
by an autorelease pool. This patch overcomes this behavior by loading a
weak object via call to objc_loadWeakRetained(), followng it by objc_release
at appropriate place, thereby removing the hidden autorelease. // rdar://10849570
llvm-svn: 168740
Diffstat (limited to 'lldb/source/Core/ValueObjectDynamicValue.cpp')
0 files changed, 0 insertions, 0 deletions

