Skip to content
  • Daniel Gröber (dxld)'s avatar
    Always zero shrunk mutable array slop when profiling · 38992085
    Daniel Gröber (dxld) authored and Marge Bot's avatar Marge Bot committed
    When shrinking arrays in the profiling way we currently don't always zero
    the leftover slop. This means we can't traverse such closures in the heap
    profiler. The old Note [zeroing slop] and #8402 have some rationale for why
    this is so but I belive the reasoning doesn't apply to mutable
    closures. There users already have to ensure multiple threads don't step on
    each other's toes so zeroing should be safe.
    38992085