Skip to content

Commit 45727af

Browse files
committed
Fix concurrency-leaks.swift test to account for no more status lock record.
1 parent 90946f0 commit 45727af

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/embedded/concurrency-leaks.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ struct Main {
2323
}
2424
_ = await x.value
2525
}
26-
// There should be exactly 5 allocations involved:
26+
// There should be exactly 4 allocations involved:
2727
// - 2x 32 bytes ... closure context for swift_task_create, closure object to pass to Task.init
2828
// - 1x 320 bytes ... malloc(amountToAllocate) in swift_task_create_common for the Task heap object itself
2929
// - 1x 1016 bytes ... the initial StackAllocator slab in the task-specific allocator
30-
// - 1x 40 bytes ... task status record
3130
// Check that they are all accounted for and free'd.
3231

3332
// CHECK: malloc({{[0-9]+}})-> [[M1:0x[0-9a-f]+]]
@@ -36,8 +35,6 @@ struct Main {
3635
// CHECK: malloc({{[0-9]+}})-> [[M4:0x[0-9a-f]+]]
3736
// CHECK: free([[M1]])
3837
// CHECK: free([[M2]])
39-
// CHECK: malloc({{[0-9]+}})-> [[M5:0x[0-9a-f]+]]
40-
// CHECK: free([[M5]])
4138
// CHECK: free([[M4]])
4239
// CHECK: free([[M3]])
4340

0 commit comments

Comments
 (0)