File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments