Opened 3 years ago

Closed 3 years ago

#349 closed defect (fixed)

Zero the payload of unboxed vectors when we allocate them.

Reported by: benl Owned by:
Priority: normal Milestone: 0.4.3
Component: Unknown Version: 0.4.1
Keywords: Cc:


If we don't zero the payload then reading a freshly allocated vector gives an undefined result.

Change History (2)

comment:1 Changed 3 years ago by benl

  • Milestone changed from 0.4.2 to 0.4.3

Malloc zeros the pages before we get them, so the fact that we don't zero allocated arrays won't be noticeable until we get a GC.

comment:2 Changed 3 years ago by benl

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.