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

Issue 6349043: This fixes the issue with the deoptimizer trashing the reloc info patching t... (Closed)

Created:
9 years, 10 months ago by Rico
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

This fixes the issue with the deoptimizer trashing the reloc info before patching the code. If we, immediately after the deoptimization, but before actually running the patched code, get a compacting GC, the addresses from the calls might no longer be valid. I have validated that this works by patching the existing code to always do a compacting gc after we finish deoptimizing. I will create a real regression test for this, but this includes additional code for allowing us to force a deopt/opt from javascript test code. I will land this in a seperate change. Committed: http://code.google.com/p/v8/source/detail?r=6565

Patch Set 1 #

Total comments: 17

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -9 lines) Patch
M src/ia32/deoptimizer-ia32.cc View 1 2 3 4 5 3 chunks +50 lines, -9 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Rico
9 years, 10 months ago (2011-02-02 07:51:27 UTC) #1
Kevin Millikin (Chromium)
The approach LGTM, but it needs a couple of comments about what hte approach is. ...
9 years, 10 months ago (2011-02-02 08:33:31 UTC) #2
Rico
Comments addressed, please have another look http://codereview.chromium.org/6349043/diff/1/src/ia32/deoptimizer-ia32.cc File src/ia32/deoptimizer-ia32.cc (right): http://codereview.chromium.org/6349043/diff/1/src/ia32/deoptimizer-ia32.cc#newcode57 src/ia32/deoptimizer-ia32.cc:57: Address original_reloc_payload = ...
9 years, 10 months ago (2011-02-02 09:19:08 UTC) #3
Vitaly Repeshko
9 years, 10 months ago (2011-02-02 14:14:53 UTC) #4
One late question.

http://codereview.chromium.org/6349043/diff/1/src/ia32/deoptimizer-ia32.cc
File src/ia32/deoptimizer-ia32.cc (right):

http://codereview.chromium.org/6349043/diff/1/src/ia32/deoptimizer-ia32.cc#ne...
src/ia32/deoptimizer-ia32.cc:109: // Handle the junk part after the new
relocation info.
Can we use Heap::CreateFillerObjectAt() here?

Powered by Google App Engine
This is Rietveld 408576698