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

Issue 2972343002: [kernel] Insert kernel bodies into VM heap (Closed)

Created:
3 years, 5 months ago by jensj
Modified:
3 years, 4 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[kernel] Insert kernel bodies into VM heap This CL copies the kernel bodies for all functions and fields into the VM heap. The function bodies in the VM heap are then used when compiling the flowgraphs. This theoretically means that the malloc'd data can be freed and that snapshotting from kernel could possibly work, though it hasn't been tested. R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/6c2232cb602818f3de1f80a66a75efa0bf15e0cc

Patch Set 1 #

Patch Set 2 : Only kernel_reader uses the C++ malloced data #

Patch Set 3 : Undid changes to kernel_binary.cc #

Patch Set 4 : Rebased #

Total comments: 10

Patch Set 5 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+564 lines, -459 lines) Patch
M pkg/kernel/binary.md View 1 2 3 4 3 chunks +0 lines, -7 lines 0 comments Download
M pkg/kernel/lib/ast.dart View 1 2 3 4 2 chunks +0 lines, -6 lines 0 comments Download
M pkg/kernel/lib/binary/ast_from_binary.dart View 1 2 3 4 3 chunks +0 lines, -3 lines 0 comments Download
M pkg/kernel/lib/binary/ast_to_binary.dart View 1 2 3 4 5 chunks +0 lines, -17 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/clustered_snapshot.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/kernel_binary.h View 1 2 3 4 6 chunks +57 lines, -39 lines 0 comments Download
M runtime/vm/kernel_binary_flowgraph.h View 1 2 3 4 20 chunks +73 lines, -56 lines 0 comments Download
M runtime/vm/kernel_binary_flowgraph.cc View 1 2 3 4 67 chunks +238 lines, -186 lines 0 comments Download
M runtime/vm/kernel_reader.cc View 1 2 3 4 12 chunks +51 lines, -29 lines 0 comments Download
M runtime/vm/kernel_to_il.h View 1 2 3 4 2 chunks +0 lines, -5 lines 0 comments Download
M runtime/vm/kernel_to_il.cc View 1 2 3 4 7 chunks +93 lines, -57 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 chunks +17 lines, -11 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 12 chunks +26 lines, -38 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 3 4 3 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
jensj
Status: Only kernel_reader.cc should read from the malloc'd memory. The flowgraph builder etc reads from ...
3 years, 5 months ago (2017-07-12 08:24:50 UTC) #2
jensj
On 2017/07/12 08:24:50, jensj wrote: > Status: Only kernel_reader.cc should read from the malloc'd memory. ...
3 years, 4 months ago (2017-08-03 13:05:47 UTC) #4
Kevin Millikin (Google)
Complicated, but lgtm. https://codereview.chromium.org/2972343002/diff/60001/runtime/vm/kernel_binary.h File runtime/vm/kernel_binary.h (right): https://codereview.chromium.org/2972343002/diff/60001/runtime/vm/kernel_binary.h#newcode151 runtime/vm/kernel_binary.h:151: const uint8_t* buffer_ = buffer(); The ...
3 years, 4 months ago (2017-08-09 12:08:52 UTC) #5
jensj
https://codereview.chromium.org/2972343002/diff/60001/runtime/vm/kernel_binary.h File runtime/vm/kernel_binary.h (right): https://codereview.chromium.org/2972343002/diff/60001/runtime/vm/kernel_binary.h#newcode151 runtime/vm/kernel_binary.h:151: const uint8_t* buffer_ = buffer(); On 2017/08/09 12:08:51, Kevin ...
3 years, 4 months ago (2017-08-10 07:37:34 UTC) #6
jensj
3 years, 4 months ago (2017-08-10 07:38:24 UTC) #8
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
6c2232cb602818f3de1f80a66a75efa0bf15e0cc (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698