[SR-11262] Array.subscript.read / Collection.subscript.read allocate #53663
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
performance
Attachment: Download
Additional Detail from JIRA
md5: f042d194a7f9a1490b93803f8a1659e2
Issue Description:
description
The following program (attached as a SwiftPM project) allocates 40,000 times, all of the allocations calling malloc directly from
protocol witness for Collection.subscript.read
andArray.subscript.read
. That's very surprising and smells a bit like a coroutine allocation (similar to SR-10604 and SR-11231).This is the dtrace trace for the mallocs
source code
the program code is here:
repro
versions
and
The text was updated successfully, but these errors were encountered: