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

Issue 472002: Fix a crash caused by garbage collection during generation of a... (Closed)

Created:
11 years ago by Kevin Millikin (Chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix a crash caused by garbage collection during generation of a callback load (or keyed load) IC. The problem was that the IC code calls a stub, which can allocate and thus trigger a GC if the stub is not already generated. Problem is solved by adding the ability to "try" to call a stub, trying to generate the stub code if necessary but signaling an allocation failure if generating the code is not possible. Committed: http://code.google.com/p/v8/source/detail?r=3440

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -73 lines) Patch
M src/code-stubs.h View 1 2 chunks +16 lines, -0 lines 0 comments Download
M src/code-stubs.cc View 1 chunk +88 lines, -53 lines 0 comments Download
M src/ia32/macro-assembler-ia32.h View 1 chunk +12 lines, -2 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 chunk +22 lines, -2 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 7 chunks +25 lines, -10 lines 0 comments Download
M src/stub-cache.h View 3 chunks +6 lines, -5 lines 0 comments Download
M src/stub-cache.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Kevin Millikin (Chromium)
11 years ago (2009-12-09 12:54:40 UTC) #1
Mads Ager (chromium)
LGTM. Are these not implemented in the 64-bit version or the ARM version? http://codereview.chromium.org/472002/diff/1/3 File ...
11 years ago (2009-12-09 13:21:30 UTC) #2
Kevin Millikin (Chromium)
11 years ago (2009-12-09 14:53:37 UTC) #3
The ApiGetterEntryStub stub is not implemented on x64 or arm.

http://codereview.chromium.org/472002/diff/1/3
File src/ia32/stub-cache-ia32.cc (right):

http://codereview.chromium.org/472002/diff/1/3#newcode1444
src/ia32/stub-cache-ia32.cc:1444: Failure* failure;
On 2009/12/09 13:21:30, Mads Ager wrote:
> Initialize to internal error or something?

OK

http://codereview.chromium.org/472002/diff/1/3#newcode1612
src/ia32/stub-cache-ia32.cc:1612: Failure* failure;
On 2009/12/09 13:21:30, Mads Ager wrote:
> Ditto.

Ditto

Powered by Google App Engine
This is Rietveld 408576698