tsan-ignores-arc-locks.swift (swift-swift-5.8-RELEASE) | : | tsan-ignores-arc-locks.swift (swift-swift-5.8.1-RELEASE) | ||
---|---|---|---|---|
// RUN: %target-build-swift -target %sanitizers-target-triple -sanitize=thread % s -o %t_binary | // RUN: %target-build-swift -target %sanitizers-target-triple -sanitize=thread % s -o %t_binary | |||
// RUN: %env-TSAN_OPTIONS=halt_on_error=1 %target-run %t_binary | // RUN: %env-TSAN_OPTIONS=halt_on_error=1 %target-run %t_binary | |||
// REQUIRES: executable_test | // REQUIRES: executable_test | |||
// REQUIRES: stress_test | // REQUIRES: stress_test | |||
// REQUIRES: tsan_runtime | // REQUIRES: tsan_runtime | |||
// REQUIRES: foundation | // REQUIRES: foundation | |||
// Check that TSan ignores the retain count update locks in the runtime. | // Check that TSan ignores the retain count update locks in the runtime. | |||
// REQUIRES: rdar108188149 | ||||
import Foundation | import Foundation | |||
public class Dummy { | public class Dummy { | |||
func doNothing() { | func doNothing() { | |||
} | } | |||
} | } | |||
public class DummyNSObject : NSObject { | public class DummyNSObject : NSObject { | |||
func doNothing() { | func doNothing() { | |||
} | } | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added |