Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Issue 241703002: Prevent unbounded growth of the getField/setField closure caches. (Closed)

Created:
6 years, 8 months ago by rmacnak
Modified:
6 years, 8 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Prevent unbounded growth of the getField/setField closure caches. BUG=http://dartbug.com/16539 R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=35433

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 5

Patch Set 4 : document test purpose and need for LRU cache #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -5 lines) Patch
M runtime/lib/mirrors_impl.dart View 1 2 3 4 chunks +21 lines, -5 lines 0 comments Download
A tests/lib/mirrors/accessor_cache_overflow_test.dart View 1 2 3 1 chunk +292 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
rmacnak
6 years, 8 months ago (2014-04-18 17:08:28 UTC) #1
rmacnak
Also bound the call counts at 2x the factor for the closures.
6 years, 8 months ago (2014-04-18 17:23:41 UTC) #2
Ivan Posva
LGTMwC -Ivan https://codereview.chromium.org/241703002/diff/40001/runtime/lib/mirrors_impl.dart File runtime/lib/mirrors_impl.dart (right): https://codereview.chromium.org/241703002/diff/40001/runtime/lib/mirrors_impl.dart#newcode338 runtime/lib/mirrors_impl.dart:338: if (_getFieldCallCounts.length == 2 * _cacheSizeLimit) { ...
6 years, 8 months ago (2014-04-25 17:07:08 UTC) #3
rmacnak
https://codereview.chromium.org/241703002/diff/40001/runtime/lib/mirrors_impl.dart File runtime/lib/mirrors_impl.dart (right): https://codereview.chromium.org/241703002/diff/40001/runtime/lib/mirrors_impl.dart#newcode338 runtime/lib/mirrors_impl.dart:338: if (_getFieldCallCounts.length == 2 * _cacheSizeLimit) { On 2014/04/25 ...
6 years, 8 months ago (2014-04-25 17:46:22 UTC) #4
rmacnak
6 years, 8 months ago (2014-04-25 17:47:19 UTC) #5
Message was sent while issue was closed.
Committed patchset #4 manually as r35433 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698