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

Issue 2054833002: Fix library private key stability during reload (Closed)

Created:
4 years, 6 months ago by Cutch
Modified:
4 years, 6 months ago
Reviewers:
turnidge, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix library private key stability during reload - [x] When allocating a library private key during reload, give the reload context an opportunity to provide a private key from the original library. - [x] In identity reload mode, ensure that we pair all libraries as well as classes. R=turnidge@google.com Committed: https://github.com/dart-lang/sdk/commit/0e286e2fdd946338f16c42f449401b3dc50914a1

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -0 lines) Patch
M runtime/vm/isolate_reload.h View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/isolate_reload.cc View 2 chunks +15 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 chunk +12 lines, -0 lines 2 comments Download

Messages

Total messages: 11 (5 generated)
Cutch
4 years, 6 months ago (2016-06-09 14:59:59 UTC) #3
turnidge
lgtm, but we should probably add a unit test for this case.
4 years, 6 months ago (2016-06-10 18:13:26 UTC) #5
Cutch
Committed patchset #1 (id:1) manually as 0e286e2fdd946338f16c42f449401b3dc50914a1 (presubmit successful).
4 years, 6 months ago (2016-06-13 19:42:23 UTC) #7
Cutch
On 2016/06/10 18:13:26, turnidge wrote: > lgtm, but we should probably add a unit test ...
4 years, 6 months ago (2016-06-13 19:45:27 UTC) #8
siva
https://codereview.chromium.org/2054833002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/2054833002/diff/1/runtime/vm/object.cc#newcode10561 runtime/vm/object.cc:10561: StorePointer(&raw_ptr()->private_key_, original_key.raw()); How do you ensure that there is ...
4 years, 6 months ago (2016-06-13 19:49:56 UTC) #10
Cutch
4 years, 6 months ago (2016-06-13 19:55:38 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/2054833002/diff/1/runtime/vm/object.cc
File runtime/vm/object.cc (right):

https://codereview.chromium.org/2054833002/diff/1/runtime/vm/object.cc#newcod...
runtime/vm/object.cc:10561: StorePointer(&raw_ptr()->private_key_,
original_key.raw());
On 2016/06/13 19:49:56, siva wrote:
> How do you ensure that there is no collision between the original_key and any
> new key that is computed for say a new library that got added as part of the
> reload?

Presently we don't. I wonder if we should go back to the old way of assigning
library private keys when reloading?

Powered by Google App Engine
This is Rietveld 408576698