Chromium Code Reviews
DescriptionClear StringToken.canonicalizer after each parsing.
Otherwise the canonicalizer grows without limit, and if the user
edits files, we constantly parse new strings, so constantly add new
entries into the cananonicalizer. Basically, it is not friendly for
long running processes. I'm not quite sure why we need to makes it
static anyway, if it can be used only for the same file content. Once
we're done with a file, that is it, we don't need its entries.
Anyway, this fixes a leak in Analysis Server.
R=ahe@google.com, brianwilkerson@google.com, danrubel@google.com, paulberry@google.com
BUG=
Committed: https://github.com/dart-lang/sdk/commit/dab5318fad8e8537300371307bc30a536edef67c
Patch Set 1 #
Messages
Total messages: 6 (1 generated)
|
||||||||||||||||||||||||||||