|
|
DescriptionMake a new IsolateHolder constructor to take snapshot with.
It instantiates v8::SnapshotCreator and SnapshotCreator creates
an isolate in its ctor.
BUG=617892
Review-Url: https://codereview.chromium.org/2897853002
Cr-Commit-Position: refs/heads/master@{#475548}
Committed: https://chromium.googlesource.com/chromium/src/+/da9d8be45f28dd326e79b9a15bffe0ab4bfd1858
Patch Set 1 : . #Patch Set 2 : Have a new constructor for given isolate #Patch Set 3 : Create SnapshotCreator in IsolateHolder #
Messages
Total messages: 34 (24 generated)
The CQ bit was checked by peria@chromium.org to run a CQ dry run
Patchset #1 (id:1) has been deleted
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Make isolate an argument to construct IsolateHolder BUG=None ========== to ========== Make isolate an argument to construct IsolateHolder To enable to set any isolate flexibly. BUG=617892 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by peria@chromium.org to run a CQ dry run
Patchset #1 (id:20001) has been deleted
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Make isolate an argument to construct IsolateHolder To enable to set any isolate flexibly. BUG=617892 ========== to ========== Make isolate an argument to construct IsolateHolder. To enable to set any isolate in a more flexible way. BUG=617892 ==========
peria@chromium.org changed reviewers: + jochen@chromium.org
peria@chromium.org changed reviewers: + haraken@chromium.org
peria@chromium.org changed reviewers: + yzshen@chromium.org
PTL. As a background: We will use a given isolate in taking a snapshot of V8 context (crbug.com/617892), but current implementation does not allow to keep a given isolate in IsolateHolder.
Description was changed from ========== Make isolate an argument to construct IsolateHolder. To enable to set any isolate in a more flexible way. BUG=617892 ========== to ========== Make isolate an argument of IsolateHolder ctor. To enable to set any isolate in a more flexible way. BUG=617892 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Ideally, the lifetime of IsolateHolder and the v8::Isolate should be tightly coupled. It seems to me that this patch goes in the opposite direction?
On 2017/05/22 11:39:14, jochen wrote: > Ideally, the lifetime of IsolateHolder and the v8::Isolate should be tightly > coupled. It seems to me that this patch goes in the opposite direction? Yes, I agree both. On we create v8::SnapshotCreator, we have to use an isolate (SnapshotCreator->isolate) instead of that created in IsolateHolder, and hence I took this way. Is it better to cache and inject isolates in blink::V8PerIsolate side?
what about adding a static gin::IsolateHolder::CreateForSnapshot or similar?
Sorry for late update. PTAL. I create a new constructor for a given isolate. V8PerIsolateData requires IsolateHolder as a member (not a pointer), so we need this backdoor as a constructor.
The CQ bit was checked by peria@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
What about IsolateHolder::IsolateHolder(intptr_t* external_references, v8::StartupData* existing_blob);?
Description was changed from ========== Make isolate an argument of IsolateHolder ctor. To enable to set any isolate in a more flexible way. BUG=617892 ========== to ========== Make a new IsolateHolder constructor to take snapshot with. It instantiates v8::SnapshotCreator and SnapshotCreator creates an isolate in its ctor. BUG=617892 ==========
On 2017/05/30 11:51:14, jochen wrote: > What about IsolateHolder::IsolateHolder(intptr_t* external_references, > v8::StartupData* existing_blob);? Makes sense. done.
lgtm
The CQ bit was checked by peria@chromium.org
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 80001, "attempt_start_ts": 1496154611922990, "parent_rev": "efe5baba2d156238707d6d8303b2055ddb246fe2", "commit_rev": "da9d8be45f28dd326e79b9a15bffe0ab4bfd1858"}
Message was sent while issue was closed.
Description was changed from ========== Make a new IsolateHolder constructor to take snapshot with. It instantiates v8::SnapshotCreator and SnapshotCreator creates an isolate in its ctor. BUG=617892 ========== to ========== Make a new IsolateHolder constructor to take snapshot with. It instantiates v8::SnapshotCreator and SnapshotCreator creates an isolate in its ctor. BUG=617892 Review-Url: https://codereview.chromium.org/2897853002 Cr-Commit-Position: refs/heads/master@{#475548} Committed: https://chromium.googlesource.com/chromium/src/+/da9d8be45f28dd326e79b9a15bff... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as https://chromium.googlesource.com/chromium/src/+/da9d8be45f28dd326e79b9a15bff... |