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

Issue 510013002: Fix rare access violation during JS heap serialization. (Closed)

Created:
6 years, 3 months ago by Slava Chigrin
Modified:
6 years, 3 months ago
Reviewers:
Yang
CC:
v8-dev
Visibility:
Public.

Description

Fix rare access violation during JS heap serialization. R=yangguo@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=23488

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M src/serialize.cc View 1 chunk +2 lines, -1 line 1 comment Download

Messages

Total messages: 6 (0 generated)
Slava Chigrin
vchigrin@yandex-team.ru changed reviewers: + yangguo@chromium.org
6 years, 3 months ago (2014-08-27 17:03:15 UTC) #1
Slava Chigrin
https://codereview.chromium.org/510013002/diff/1/src/serialize.cc File src/serialize.cc (right): https://codereview.chromium.org/510013002/diff/1/src/serialize.cc#newcode1545 src/serialize.cc:1545: } Before that sometimes current[repeat_count] can go beyound |end| ...
6 years, 3 months ago (2014-08-27 17:06:01 UTC) #2
Yang
On 2014/08/27 17:06:01, Slava Chigrin wrote: > https://codereview.chromium.org/510013002/diff/1/src/serialize.cc > File src/serialize.cc (right): > > https://codereview.chromium.org/510013002/diff/1/src/serialize.cc#newcode1545 ...
6 years, 3 months ago (2014-08-28 11:31:02 UTC) #3
Yang
Committed patchset #1 (id:1) manually as 23488 (presubmit successful).
6 years, 3 months ago (2014-08-28 11:45:29 UTC) #4
Slava Chigrin
On 2014/08/28 11:45:29, Yang wrote: > Committed patchset #1 (id:1) manually as 23488 (presubmit successful). ...
6 years, 3 months ago (2014-08-28 11:54:03 UTC) #5
Yang
6 years, 3 months ago (2014-08-28 11:57:29 UTC) #6
Message was sent while issue was closed.
On 2014/08/28 11:54:03, Slava Chigrin wrote:
> On 2014/08/28 11:45:29, Yang wrote:
> > Committed patchset #1 (id:1) manually as 23488 (presubmit successful).
> 
> Thank you so much for help! I have one little question about serializer: why
it
> have so big macro CASE_BODY in  Deserializer::ReadChunk? May be using inline
> templatized function instead of it can improve readability and have better
stack
> space usage (due to local variables re-using). It may be important since that
> function called recursively, so it may not work well on large heaps...

Not sure. If I'm not mistaken, it was an effort to improve performance. I think
the compiler should eliminate the unnecessary if-blocks as dead code, so it
probably doesn't make too much of a difference?

Powered by Google App Engine
This is Rietveld 408576698