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

Issue 19804002: Limit the amount of memory that can be folded together. (Closed)

Created:
7 years, 5 months ago by Hannes Payer (out of office)
Modified:
7 years, 5 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Limit the amount of memory that can be folded together. BUG=

Patch Set 1 #

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

Messages

Total messages: 4 (0 generated)
Hannes Payer (out of office)
7 years, 5 months ago (2013-07-19 11:50:25 UTC) #1
Michael Starzinger
Looking good, nice catch! Just two comments about additional asserts. https://codereview.chromium.org/19804002/diff/1/src/hydrogen-instructions.cc File src/hydrogen-instructions.cc (right): https://codereview.chromium.org/19804002/diff/1/src/hydrogen-instructions.cc#newcode3233 ...
7 years, 5 months ago (2013-07-22 08:46:06 UTC) #2
Michael Starzinger
LGTM. https://codereview.chromium.org/19804002/diff/1/src/hydrogen-instructions.cc File src/hydrogen-instructions.cc (right): https://codereview.chromium.org/19804002/diff/1/src/hydrogen-instructions.cc#newcode3233 src/hydrogen-instructions.cc:3233: if (new_dominator_size > Page::kMaxNonCodeHeapObjectSize) { On 2013/07/22 08:46:07, ...
7 years, 5 months ago (2013-07-22 12:28:04 UTC) #3
Hannes Payer (out of office)
7 years, 5 months ago (2013-07-22 12:37:33 UTC) #4
On 2013/07/22 12:28:04, Michael Starzinger wrote:
> LGTM.
> 
> https://codereview.chromium.org/19804002/diff/1/src/hydrogen-instructions.cc
> File src/hydrogen-instructions.cc (right):
> 
>
https://codereview.chromium.org/19804002/diff/1/src/hydrogen-instructions.cc#...
> src/hydrogen-instructions.cc:3233: if (new_dominator_size >
> Page::kMaxNonCodeHeapObjectSize) {
> On 2013/07/22 08:46:07, Michael Starzinger wrote:
> > Can we add an assert here like the following? This makes sure that we are
not
> > statically exceeding the limit for neither new-space nor pretenured
> allocations.
> > 
> > ASSERT_LE(Page::kMaxNonCodeHeapObjectSize, Page::kMaxObjectSizeInNewSpace);
> > 
> > Also on top of that, could we add asserts to MacroAssembler::Allocate (the
one
> > that takes a static object size) that check we are not exceeding the same
> limit
> > through other call-sites? I know it's not part of this change but such an
> assert
> > would have caught this violation earlier.
> 
> As discussed offline: This is a can of worms and we will clean it up in a
> followup CL where we'll try to unify those two constant.

committed, Revision: r15804

Powered by Google App Engine
This is Rietveld 408576698