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

Issue 11566011: Use MemoryChunk-based allocation for deoptimization entry code (Closed)

Created:
8 years ago by haitao.feng
Modified:
7 years, 10 months ago
CC:
v8-dev
Visibility:
Public.

Description

Use MemoryChunk-based allocation for deoptimization entry code This is done by first committing the deoptimization entry code with a minimal area size (OS::CommitPageSize) and later using CommitArea to adjust the size. Committed: http://code.google.com/p/v8/source/detail?r=13494 Committed: https://code.google.com/p/v8/source/detail?r=13532

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 20

Patch Set 4 : #

Total comments: 5

Patch Set 5 : #

Total comments: 21

Patch Set 6 : #

Total comments: 23

Patch Set 7 : #

Patch Set 8 : #

Total comments: 13

Patch Set 9 : #

Patch Set 10 : #

Total comments: 4

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+332 lines, -57 lines) Patch
M src/deoptimizer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M src/deoptimizer.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +30 lines, -19 lines 0 comments Download
M src/isolate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M src/spaces.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +16 lines, -6 lines 0 comments Download
M src/spaces.cc View 1 2 3 4 5 6 7 8 9 10 11 15 chunks +141 lines, -29 lines 0 comments Download
M test/cctest/test-alloc.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -1 line 0 comments Download
M test/cctest/test-spaces.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +139 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
haitao.feng
If the deopt table is in the code range for X64, we could use direct ...
8 years ago (2012-12-13 13:42:53 UTC) #1
haitao.feng
Fixed x64.debug.check. There are no fails for x64.debug.check and x64.release.check. The performance data is not ...
8 years ago (2012-12-14 00:34:12 UTC) #2
Sven Panne
Apart from the comments below, I have trouble understanding what the point of the whole ...
8 years ago (2012-12-14 08:08:40 UTC) #3
haitao.feng
Sven, thanks for your review. This CL wants to put the deoptimization entries into the ...
8 years ago (2012-12-20 06:52:19 UTC) #4
danno
This CL seems to work really hard to duplicate functionality that already exists. If you ...
8 years ago (2012-12-20 10:18:35 UTC) #5
haitao.feng
danno, thanks for your review. The main reason that I did not pass through a ...
8 years ago (2012-12-21 08:12:29 UTC) #6
haitao.feng
1. Updated CL to refactor the existing code to decouple reserving and committing aligned memories ...
7 years, 12 months ago (2012-12-24 14:46:46 UTC) #7
danno
https://codereview.chromium.org/11566011/diff/6001/src/spaces.cc File src/spaces.cc (right): https://codereview.chromium.org/11566011/diff/6001/src/spaces.cc#newcode300 src/spaces.cc:300: // ASSERT(size_ == 0); On 2012/12/24 14:46:46, haitao.feng wrote: ...
7 years, 12 months ago (2012-12-28 11:58:32 UTC) #8
haitao.feng
danno, thanks for your review. In this CL, I have used VirtualMemory to store the ...
7 years, 12 months ago (2012-12-28 15:04:54 UTC) #9
danno
https://codereview.chromium.org/11566011/diff/11001/src/deoptimizer.cc File src/deoptimizer.cc (right): https://codereview.chromium.org/11566011/diff/11001/src/deoptimizer.cc#newcode77 src/deoptimizer.cc:77: delete eager_deoptimization_entry_code_; I don't know what you mean by ...
7 years, 12 months ago (2012-12-28 15:38:10 UTC) #10
haitao.feng
danno, Happy New Year! Thanks for your quick review and sorry for the abuse of ...
7 years, 11 months ago (2012-12-31 05:50:53 UTC) #11
danno
I think the general idea of this patch is right, but it adds too many ...
7 years, 11 months ago (2013-01-15 09:41:18 UTC) #12
haitao.feng
Danno, thanks for the review. I have updated this CL to use your recommendation of ...
7 years, 11 months ago (2013-01-16 13:02:06 UTC) #13
danno
Thanks for the updated patch. In general, I like this approach better than all the ...
7 years, 11 months ago (2013-01-16 14:48:54 UTC) #14
haitao.feng
I do not introduce "committed_body_size", instead I am using area_end_ - area_star_t to calculate it. ...
7 years, 11 months ago (2013-01-17 05:34:01 UTC) #15
danno
Thanks for the updated patch set. Here are some further comments. https://codereview.chromium.org/11566011/diff/27002/src/spaces.cc File src/spaces.cc (right): ...
7 years, 11 months ago (2013-01-17 10:49:55 UTC) #16
haitao.feng
Thanks for the review. It might make sense to use area_end_ as the end of ...
7 years, 11 months ago (2013-01-17 14:20:33 UTC) #17
haitao.feng
Corrected the size calculation to: ASSERT(body_size <= size_ - (area_start_ - address()) - (executable == ...
7 years, 11 months ago (2013-01-17 14:58:02 UTC) #18
danno
Thanks for the updated patch set. It's getting much closer, please see my feedback below, ...
7 years, 11 months ago (2013-01-17 16:00:55 UTC) #19
haitao.feng
Thanks for the review. All the comments are addressed. 1) Rename CommitBody to CommitArea. 2) ...
7 years, 11 months ago (2013-01-18 12:59:26 UTC) #20
haitao.feng
Updated to patch set 10. 1) Added comments in the MemoryChunk::AllocateChunk to describe the MemoryChunk ...
7 years, 11 months ago (2013-01-21 04:48:24 UTC) #21
danno
Thanks for the updated patch. I especially like the updated comments with the helpful diagram ...
7 years, 11 months ago (2013-01-24 12:38:17 UTC) #22
haitao.feng
danno, thanks for your review. I am glad you like that comment :) Thanks for ...
7 years, 11 months ago (2013-01-24 13:27:14 UTC) #23
danno
lgtm, I'll land this for you
7 years, 11 months ago (2013-01-24 15:11:29 UTC) #24
danno
Unfortunately, this patch causes crashes on Windows, and I had to roll back. Can you ...
7 years, 11 months ago (2013-01-24 15:39:07 UTC) #25
haitao.feng
Sorry about that. I seldom use Windows and only verified Linux and Mac before submitting ...
7 years, 11 months ago (2013-01-25 00:15:03 UTC) #26
haitao.feng
Fixed Windows crash issue. I have mistakenly removed a RoundUp in the ReserveAlignedMemory, which has ...
7 years, 10 months ago (2013-01-28 11:13:43 UTC) #27
danno
lgtm with the new fix. I'll land this again for you.
7 years, 10 months ago (2013-01-29 09:03:37 UTC) #28
danno
So are you saying that the problem is not fixed? If it's not fixed, then ...
7 years, 10 months ago (2013-01-29 09:41:13 UTC) #29
haitao.feng
The problem is fixed. I have verified that on Windows/Linux/Mac before submitting it. On Windows, ...
7 years, 10 months ago (2013-01-29 11:56:56 UTC) #30
danno
The nosnap failures are not related to your change, we're working on fixing them right ...
7 years, 10 months ago (2013-01-29 12:52:33 UTC) #31
haitao.feng
7 years, 10 months ago (2013-01-29 13:15:26 UTC) #32
Message was sent while issue was closed.
Thanks for the info. 

I just checked out mozilla. I am running the test cases, currently there are 9
fails for both snapshot=on and off.
 
For the WebKit mac test, I do not know why there are 83 new crashes. Is it
related that we have reserved more memory for deoptimization entry code than
before? or is it caused by the same reason with nosnap?

Powered by Google App Engine
This is Rietveld 408576698