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

Issue 1277873002: Fix stale entries in optimized code map. (Closed)

Created:
5 years, 4 months ago by Michael Starzinger
Modified:
5 years, 4 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix stale entries in optimized code map. This fixes a corner-case where extending an optimized code map left stale entries in the abandoned copy. This can cause havoc not only in the heap verifier but also in the GC, because stale entries have not been recorded when being trated weakly. Note that this also pre-tenures all optimized code maps into old-space because their lifetime is coupled to the SharedFunctionInfo anyways. R=hpayer@chromium.org TEST=cctest/test-heap/Regress514122 BUG=chromium:514122 LOG=N Committed: https://crrev.com/d4ac509f3cdcd22523ad2df64ec69d9cda370887 Cr-Commit-Position: refs/heads/master@{#30047}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -10 lines) Patch
M src/objects.cc View 2 chunks +9 lines, -10 lines 0 comments Download
M test/cctest/test-heap.cc View 1 1 chunk +88 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Michael Starzinger
5 years, 4 months ago (2015-08-06 11:28:52 UTC) #1
Hannes Payer (out of office)
Cool! lgtm https://codereview.chromium.org/1277873002/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1277873002/diff/1/src/objects.cc#newcode9521 src/objects.cc:9521: new_code_map = isolate->factory()->NewFixedArray(kInitialLength, TENURED); Good! https://codereview.chromium.org/1277873002/diff/1/test/cctest/test-heap.cc File ...
5 years, 4 months ago (2015-08-06 12:27:31 UTC) #2
nicole
5 years, 4 months ago (2015-08-06 12:28:21 UTC) #4
Michael Starzinger
https://codereview.chromium.org/1277873002/diff/1/test/cctest/test-heap.cc File test/cctest/test-heap.cc (right): https://codereview.chromium.org/1277873002/diff/1/test/cctest/test-heap.cc#newcode4633 test/cctest/test-heap.cc:4633: // Add the code several times to the optimized ...
5 years, 4 months ago (2015-08-06 13:55:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1277873002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1277873002/20001
5 years, 4 months ago (2015-08-06 13:59:23 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 4 months ago (2015-08-06 14:22:06 UTC) #9
commit-bot: I haz the power
5 years, 4 months ago (2015-08-06 14:22:28 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d4ac509f3cdcd22523ad2df64ec69d9cda370887
Cr-Commit-Position: refs/heads/master@{#30047}

Powered by Google App Engine
This is Rietveld 408576698