Feedback vector: ASAN found memory leaks during AST Numbering pass.
authormvstanton <mvstanton@chromium.org>
Tue, 17 Mar 2015 15:16:21 +0000 (08:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 17 Mar 2015 15:16:36 +0000 (15:16 +0000)
commit7478c5a0cc4baccf30d83e01be8a8dc5cbe65900
treeda85235019e197ab5a99684e426ab0fadb30fc6d
parent7f7cff33f37a05eea357c170a9aea03484a6dc94
Feedback vector: ASAN found memory leaks during AST Numbering pass.

The cause was dynamic allocation of an accounting structure used to
create/initialize the type feedback vector, done at the end of the
numbering pass. The solution is to Zone-allocate the structure to
bring it's lifetime in line with the compilation unit.

BUG=

Review URL: https://codereview.chromium.org/1014793003

Cr-Commit-Position: refs/heads/master@{#27241}
src/ast-numbering.cc
src/ast.h
src/bootstrapper.cc
src/factory.cc
src/factory.h
src/heap/heap.cc
src/type-feedback-vector.cc
src/type-feedback-vector.h
test/cctest/test-feedback-vector.cc