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

Issue 70233010: API: Change AdjustAmountOfExternalAllocatedMemory calls to use int64_t instead of intptr_t (Closed)

Created:
7 years, 1 month ago by Jakob Kummerow
Modified:
7 years, 1 month ago
Reviewers:
Sven Panne, ulan
CC:
v8-dev, Paweł Hajdan Jr.
Visibility:
Public.

Description

API: Change AdjustAmountOfExternalAllocatedMemory calls to use int64_t instead of intptr_t This prevents an overflow in FreeArrayBuffer, which in turn caused needless GCs as well as crashes on isolate teardown. LOG=Y R=ulan@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=17944

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -22 lines) Patch
M include/v8.h View 2 chunks +3 lines, -3 lines 1 comment Download
M src/api.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M src/heap.h View 4 chunks +9 lines, -6 lines 0 comments Download
M src/heap.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/heap-inl.h View 3 chunks +7 lines, -7 lines 0 comments Download
M src/runtime.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Jakob Kummerow
PTAL.
7 years, 1 month ago (2013-11-14 14:37:41 UTC) #1
ulan
LGTM
7 years, 1 month ago (2013-11-14 14:47:50 UTC) #2
Sven Panne
https://codereview.chromium.org/70233010/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/70233010/diff/1/include/v8.h#newcode4663 include/v8.h:4663: static int64_t AdjustAmountOfExternalAllocatedMemory( This will break 32bit embedders, so ...
7 years, 1 month ago (2013-11-15 07:21:30 UTC) #3
Jakob Kummerow
As discussed offline, embedders only require code changes if they store the result of an ...
7 years, 1 month ago (2013-11-18 17:02:02 UTC) #4
Jakob Kummerow
7 years, 1 month ago (2013-11-21 08:06:16 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 manually as r17944 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698