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

Issue 504071: Disallow garbage collection at another site in the LoadCallback ICs.... (Closed)

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

Description

Disallow garbage collection at another site in the LoadCallback ICs. MacroAssembler::PopHandleScope emits a runtime call (through a stub), which should not be allowed to perform a GC but return a failure instead. BUG=30790 TEST=none Committed: http://code.google.com/p/v8/source/detail?r=3501

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -3 lines) Patch
M src/ia32/macro-assembler-ia32.h View 3 chunks +19 lines, -0 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 5 chunks +44 lines, -2 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 1 chunk +8 lines, -1 line 1 comment Download

Messages

Total messages: 2 (0 generated)
Kevin Millikin (Chromium)
11 years ago (2009-12-19 20:33:02 UTC) #1
iposva
11 years ago (2009-12-20 05:04:50 UTC) #2
Kevin,

I think you are fighting a loosing battle here. While this change will certainly
fix the reported problem, I think a safer approach would be to not drop the
handles when calling ComputeLoadCallback in the first place.

LGTM especially if you clarify the confusing comment.

-Ivan

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

http://codereview.chromium.org/504071/diff/1/4#newcode818
src/ia32/stub-cache-ia32.cc:818: // collection but instead return a failure
object.
This comment is very confusing. Isn't it so that emitting the code to call
PopHandleScope can cause a GC? This is not what I read in your comment here.
At the least please clarify that the two instances of the word "call" do not
mean the same call.

Powered by Google App Engine
This is Rietveld 408576698