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

Issue 12217106: Don't use TLS for space iterators. (Closed)

Created:
7 years, 10 months ago by Sven Panne
Modified:
7 years, 10 months ago
CC:
v8-dev
Visibility:
Public.

Description

Don't use TLS for space iterators. This is not only inherently slow, but it also forces the caller to enter an Isolate before. Both is bad, so we have to do some heap plumbing. BUG=v8:2531 Committed: http://code.google.com/p/v8/source/detail?r=13638

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 2

Patch Set 3 : Addressed feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -125 lines) Patch
M src/debug.cc View 1 5 chunks +10 lines, -10 lines 0 comments Download
M src/heap.h View 1 2 5 chunks +19 lines, -14 lines 0 comments Download
M src/heap.cc View 14 chunks +48 lines, -41 lines 0 comments Download
M src/heap-profiler.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M src/heap-profiler.cc View 1 3 chunks +6 lines, -5 lines 0 comments Download
M src/liveedit.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M src/log.cc View 4 chunks +13 lines, -9 lines 0 comments Download
M src/mark-compact.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/profile-generator.h View 1 5 chunks +10 lines, -3 lines 0 comments Download
M src/profile-generator.cc View 1 9 chunks +16 lines, -12 lines 0 comments Download
M src/runtime.cc View 7 chunks +20 lines, -17 lines 0 comments Download
M test/cctest/test-api.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-debug.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-heap.cc View 4 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Sven Panne
7 years, 10 months ago (2013-02-11 12:17:33 UTC) #1
Michael Starzinger
LGTM with a nit. https://codereview.chromium.org/12217106/diff/2001/src/heap.h File src/heap.h (right): https://codereview.chromium.org/12217106/diff/2001/src/heap.h#newcode2393 src/heap.h:2393: Heap* heap_; Move this down ...
7 years, 10 months ago (2013-02-11 12:32:01 UTC) #2
Sven Panne
Addressed comments, checking with Chrome to see if devtools etc. still work before landing... https://codereview.chromium.org/12217106/diff/2001/src/heap.h ...
7 years, 10 months ago (2013-02-11 12:50:00 UTC) #3
Vyacheslav Egorov (Google)
7 years, 10 months ago (2013-02-11 13:07:31 UTC) #4
Message was sent while issue was closed.
DBC

What happens if I try to iterate spaces while the isolate is being destroyed?

(e.g. from another thread without holding an Isolate lock?)

Powered by Google App Engine
This is Rietveld 408576698