swift
799d0541 - Fix ThreadSafeRefCountedBase*::Release() (#3673)

Commit
8 years ago
Fix ThreadSafeRefCountedBase*::Release() (#3673) C++ atomic's fetch_sub returns the previous value, where we want to check the new value. This was causing massive memory leaks in SourceKit. For ThreadSafeRefCountedBase, just switch to the one in LLVM that's already correct. We should move the VPTR one to LLVM as well and then we can get rid of this header. rdar://problem/27358273
Author
Committer
Parents
  • include/swift
    • Basic
      • File
        ThreadSafeRefCounted.h
    • IDE
      • File
        CodeCompletionCache.h
  • tools/SourceKit
    • include/SourceKit/Core
      • File
        LLVM.h
    • lib/SwiftLang
      • File
        SwiftInterfaceGenContext.h
      • File
        SwiftInvocation.h
  • unittests/Basic
    • File
      CMakeLists.txt
    • File
      ThreadSafeRefCntPointerTests.cpp