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

Issue 1950963002: Introduce a new phantom weakness type without finalization callback. (Closed)

Created:
4 years, 7 months ago by ulan
Modified:
4 years, 7 months ago
CC:
Paweł Hajdan Jr., v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Introduce a new phantom weakness type without finalization callback. Handles of this type are automatically reset by the garbage collector when their objects are not longer reachable. The motivation is to reduce pause time of external.weak_global_handles phase of the garbage collector by not maintaing the list of pending callbacks and not calling the callbacks. Local testing on discourse page of the v8.inifinite_scroll benchmark shows 7x improvement for this GC phase. Before: external.weak_global_handles len: 21 min: 0.0 max: 4.5 avg: 0.757142857143 After: external.weak_global_handles len: 21 min: 0.0 max: 0.5 avg: 0.109523809524 A follow-up patch will enable the new phantom handles in Chromium. BUG=chromium:608333 LOG=NO Committed: https://crrev.com/a6da98d86ffab7e1e50319ed12b57fcb366e24ee Cr-Commit-Position: refs/heads/master@{#36095}

Patch Set 1 #

Patch Set 2 : Fix a bug with encoding #

Patch Set 3 : Rebase and use freed up bit for encoding #

Patch Set 4 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -24 lines) Patch
M include/v8.h View 1 2 4 chunks +23 lines, -3 lines 0 comments Download
M src/api.cc View 1 2 3 chunks +17 lines, -11 lines 0 comments Download
M src/global-handles.h View 1 2 3 5 chunks +17 lines, -2 lines 0 comments Download
M src/global-handles.cc View 1 2 10 chunks +45 lines, -8 lines 0 comments Download
M test/cctest/test-global-handles.cc View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
ulan
ptal
4 years, 7 months ago (2016-05-04 13:56:54 UTC) #3
jochen (gone - plz use gerrit)
lgtm
4 years, 7 months ago (2016-05-04 14:50:04 UTC) #4
ulan
Turns out we don't have enough bits in flag_ to afford adding a new weakness ...
4 years, 7 months ago (2016-05-04 15:30:44 UTC) #5
jochen (gone - plz use gerrit)
On 2016/05/04 at 15:30:44, ulan wrote: > Turns out we don't have enough bits in ...
4 years, 7 months ago (2016-05-04 15:48:38 UTC) #6
ulan
On 2016/05/04 15:48:38, jochen wrote: > On 2016/05/04 at 15:30:44, ulan wrote: > > Turns ...
4 years, 7 months ago (2016-05-04 15:59:21 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1950963002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1950963002/60001
4 years, 7 months ago (2016-05-06 13:43:06 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-06 14:12:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1950963002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1950963002/60001
4 years, 7 months ago (2016-05-09 06:32:10 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-09 07:15:53 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-05-09 07:18:08 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a6da98d86ffab7e1e50319ed12b57fcb366e24ee
Cr-Commit-Position: refs/heads/master@{#36095}

Powered by Google App Engine
This is Rietveld 408576698