summaryrefslogtreecommitdiff
path: root/test/tsan/Darwin/gcd-fd.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/tsan/Darwin/gcd-fd.mm')
-rw-r--r--test/tsan/Darwin/gcd-fd.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tsan/Darwin/gcd-fd.mm b/test/tsan/Darwin/gcd-fd.mm
index 838cf20ca..21e5b07f1 100644
--- a/test/tsan/Darwin/gcd-fd.mm
+++ b/test/tsan/Darwin/gcd-fd.mm
@@ -17,8 +17,8 @@ int main(int argc, const char *argv[]) {
0666, queue, ^(int error) { });
dispatch_io_set_high_water(channel, 1);
- NSData *ns_data = [NSMutableData dataWithLength:1000];
- dispatch_data_t data = dispatch_data_create(ns_data.bytes, ns_data.length, NULL, DISPATCH_DATA_DESTRUCTOR_DEFAULT);
+ char buf[1000];
+ dispatch_data_t data = dispatch_data_create(buf, sizeof(buf), NULL, DISPATCH_DATA_DESTRUCTOR_DEFAULT);
my_global++;
dispatch_io_write(channel, 0, data, queue, ^(bool done, dispatch_data_t remainingData, int error) {