]> git.llucax.com Git - software/dgc/naive.git/commit
Initialize capacity to 0 when allocating a new cell
authorAlberto Bertogli <albertito@blitiri.com.ar>
Fri, 15 May 2009 02:18:09 +0000 (23:18 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Sun, 17 May 2009 21:04:02 +0000 (18:04 -0300)
commit2d8639409b4749afd92266347f20b99da80e14c9
tree3df32e8472a111b7fc922f121a295a4c30f9fae0
parent1510e826d84ca402a00c5cab2d2e2d172b8602d2
Initialize capacity to 0 when allocating a new cell

Otherwise, when later we do cell.capacity == 0 we're using uninitialized
memory and can return the wrong result if we're not lucky enough to get 0s.
gc/gc.d