[Lldb-commits] [lldb] r278064 - Garbage collection is not around anymore, we can remove our support for it.
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 8 15:48:58 PDT 2016
Author: gclayton
Date: Mon Aug 8 17:48:57 2016
New Revision: 278064
URL: http://llvm.org/viewvc/llvm-project?rev=278064&view=rev
Log:
Garbage collection is not around anymore, we can remove our support for it.
Modified:
lldb/trunk/source/Host/macosx/HostThreadMacOSX.mm
Modified: lldb/trunk/source/Host/macosx/HostThreadMacOSX.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/HostThreadMacOSX.mm?rev=278064&r1=278063&r2=278064&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/HostThreadMacOSX.mm (original)
+++ lldb/trunk/source/Host/macosx/HostThreadMacOSX.mm Mon Aug 8 17:48:57 2016
@@ -13,7 +13,6 @@
#include <CoreFoundation/CoreFoundation.h>
#include <Foundation/Foundation.h>
-#include <objc/objc-auto.h>
#include <pthread.h>
using namespace lldb_private;
@@ -30,22 +29,7 @@ class MacOSXDarwinThread
MacOSXDarwinThread()
: m_pool(nil)
{
- // Register our thread with the collector if garbage collection is enabled.
- if (objc_collectingEnabled())
- {
-#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5
- // On Leopard and earlier there is no way objc_registerThreadWithCollector
- // function, so we do it manually.
- auto_zone_register_thread(auto_zone());
-#else
- // On SnowLeopard and later we just call the thread registration function.
- objc_registerThreadWithCollector();
-#endif
- }
- else
- {
- m_pool = [[NSAutoreleasePool alloc] init];
- }
+ m_pool = [[NSAutoreleasePool alloc] init];
}
~MacOSXDarwinThread()
More information about the lldb-commits
mailing list