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

Issue 1327403002: [objects] do not visit ArrayBuffer's backing store (Closed)

Created:
5 years, 3 months ago by fedor.indutny
Modified:
5 years, 3 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[objects] do not visit ArrayBuffer's backing store ArrayBuffer's backing store is a pointer to external heap, and can't be treated as a heap object. Doing so will result in crashes, when the backing store is unaligned. See: https://github.com/nodejs/node/issues/2791 BUG=chromium:530531 R=mlippautz@chromium.org LOG=N Committed: https://crrev.com/0d017282d32ce634f364461aa79ee996108f8b9d Cr-Commit-Position: refs/heads/master@{#30771}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fixes #

Patch Set 3 : remove unused var in test #

Patch Set 4 : visit all fields in array buffer, reorder fields for simplicity #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -12 lines) Patch
M src/heap/mark-compact.cc View 1 2 3 2 chunks +28 lines, -0 lines 0 comments Download
M src/heap/objects-visiting.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M src/heap/objects-visiting-inl.h View 1 2 chunks +3 lines, -8 lines 0 comments Download
M src/heap/store-buffer.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 2 chunks +14 lines, -3 lines 0 comments Download
M src/objects-inl.h View 1 2 3 2 chunks +28 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (10 generated)
fedor.indutny
Hello again! One more CL from me. I hope you don't mind! ;) I'm not ...
5 years, 3 months ago (2015-09-10 21:25:17 UTC) #1
Michael Lippautz
+jochen I added a tracking bug for this issue. Will maybe have a look today ...
5 years, 3 months ago (2015-09-11 11:05:22 UTC) #3
Michael Lippautz
Thanks for digging into this, but I think there are some problems. The main problem ...
5 years, 3 months ago (2015-09-11 14:36:24 UTC) #4
fedor.indutny
Oh yeah, I forgot about it. Looking forward for full review! Thanks.
5 years, 3 months ago (2015-09-11 20:35:05 UTC) #5
fedor.indutny
Hello! Just wanted to let you know that this is very critical for node.js . ...
5 years, 3 months ago (2015-09-14 08:57:34 UTC) #6
jochen (gone - plz use gerrit)
Object::ContentType needs to return kMixedValues for array buffers, and all call-sites of content type need ...
5 years, 3 months ago (2015-09-14 10:04:36 UTC) #7
jochen (gone - plz use gerrit)
5 years, 3 months ago (2015-09-14 10:04:41 UTC) #8
fedor.indutny
All fixed. Thanks! https://codereview.chromium.org/1327403002/diff/1/src/objects-inl.h File src/objects-inl.h (right): https://codereview.chromium.org/1327403002/diff/1/src/objects-inl.h#newcode6594 src/objects-inl.h:6594: HeapObject::RawField(obj, JSArrayBuffer::BodyDescriptor::kStartOffset), On 2015/09/14 10:04:36, jochen ...
5 years, 3 months ago (2015-09-14 17:08:16 UTC) #9
jochen (gone - plz use gerrit)
lgtm
5 years, 3 months ago (2015-09-15 07:41:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1327403002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1327403002/20001
5 years, 3 months ago (2015-09-15 17:32:39 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/5806)
5 years, 3 months ago (2015-09-15 17:36:10 UTC) #14
fedor.indutny
Jochen, Looks like it is missing some more LGTMs: ** Presubmit ERRORS ** Missing LGTM ...
5 years, 3 months ago (2015-09-15 17:40:21 UTC) #15
fedor.indutny
Going to try it one more time with removed unused variable, just in case...
5 years, 3 months ago (2015-09-15 17:47:07 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1327403002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1327403002/40001
5 years, 3 months ago (2015-09-15 17:47:49 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/5808)
5 years, 3 months ago (2015-09-15 17:50:43 UTC) #21
fedor.indutny
Yeah, the same. We need more LGTMs :) Thank you!
5 years, 3 months ago (2015-09-15 17:52:45 UTC) #22
fedor.indutny
Looks like there was a debug build failure because I didn't visit all the JSObject ...
5 years, 3 months ago (2015-09-15 22:25:31 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1327403002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1327403002/60001
5 years, 3 months ago (2015-09-15 22:25:51 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/5812)
5 years, 3 months ago (2015-09-15 22:29:34 UTC) #28
fedor.indutny
All green now, please take a look. Thanks!
5 years, 3 months ago (2015-09-15 23:14:44 UTC) #29
jochen (gone - plz use gerrit)
still lgtm
5 years, 3 months ago (2015-09-16 11:22:48 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1327403002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1327403002/60001
5 years, 3 months ago (2015-09-16 17:25:53 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-09-16 17:27:48 UTC) #33
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/0d017282d32ce634f364461aa79ee996108f8b9d Cr-Commit-Position: refs/heads/master@{#30771}
5 years, 3 months ago (2015-09-16 17:28:17 UTC) #34
fedor.indutny
5 years, 3 months ago (2015-09-16 17:34:31 UTC) #35
Message was sent while issue was closed.
Not sure why it worked now, but hooray! :) Thank you.

Powered by Google App Engine
This is Rietveld 408576698