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

Issue 420713008: Remove hard limit from mirrors accessor caches. (Closed)

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

Description

Remove hard limit from mirrors accessor caches. Avoids treadmilling the cache when the working set is larger than the cache size, such as the observe loop of a very large Angular app. BUG=http://dartbug.com/20196 R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=39057

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 9

Patch Set 4 : remove generics, move into vm mirrors #

Patch Set 5 : #

Total comments: 3

Patch Set 6 : #

Patch Set 7 : unpack dense expression setting up closure generation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -237 lines) Patch
M runtime/lib/mirrors.cc View 1 chunk +9 lines, -3 lines 0 comments Download
M runtime/lib/mirrors_impl.dart View 1 2 3 4 5 6 4 chunks +185 lines, -54 lines 0 comments Download
M sdk/lib/internal/internal.dart View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/internal/internal_sources.gypi View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/internal/lru.dart View 1 2 1 chunk +0 lines, -125 lines 0 comments Download
D tests/compiler/dart2js_native/lru_test.dart View 1 2 1 chunk +0 lines, -10 lines 0 comments Download
D tests/lib/mirrors/lru_expect.dart View 1 2 1 chunk +0 lines, -27 lines 0 comments Download
D tests/lib/mirrors/lru_test.dart View 1 2 1 chunk +0 lines, -16 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
rmacnak
6 years, 4 months ago (2014-07-31 21:45:30 UTC) #1
Ivan Posva
https://codereview.chromium.org/420713008/diff/40001/runtime/lib/mirrors_impl.dart File runtime/lib/mirrors_impl.dart (right): https://codereview.chromium.org/420713008/diff/40001/runtime/lib/mirrors_impl.dart#newcode324 runtime/lib/mirrors_impl.dart:324: return (_getFieldClosures[unwrapped] = _createGetterClosure(unwrapped))(r); Long line? https://codereview.chromium.org/420713008/diff/40001/sdk/lib/internal/cache.dart File sdk/lib/internal/cache.dart ...
6 years, 4 months ago (2014-08-06 23:05:15 UTC) #2
rmacnak
Removed generics, moved into vm mirrors, assert free slot after shrinkOrGrow https://codereview.chromium.org/420713008/diff/40001/sdk/lib/internal/cache.dart File sdk/lib/internal/cache.dart (right): ...
6 years, 4 months ago (2014-08-07 20:05:25 UTC) #3
Ivan Posva
https://codereview.chromium.org/420713008/diff/80001/runtime/lib/mirrors_impl.dart File runtime/lib/mirrors_impl.dart (right): https://codereview.chromium.org/420713008/diff/80001/runtime/lib/mirrors_impl.dart#newcode95 runtime/lib/mirrors_impl.dart:95: bool usedSinceGrowth = false; Allocating a new association marks ...
6 years, 4 months ago (2014-08-08 19:09:36 UTC) #4
rmacnak
Moved association initialization to constructor.
6 years, 4 months ago (2014-08-08 20:31:40 UTC) #5
Ivan Posva
LGTM with the changes we discussed. -Ivan
6 years, 4 months ago (2014-08-08 21:05:27 UTC) #6
rmacnak
6 years, 4 months ago (2014-08-08 22:20:45 UTC) #7
Message was sent while issue was closed.
Committed patchset #7 manually as 39057 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698