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

Issue 1695733002: [counters] Making counter properly reentrant. (Closed)

Created:
4 years, 10 months ago by Camillo Bruni
Modified:
4 years, 10 months ago
Reviewers:
Jarin
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@2016-02-09_recursive_counters_1681943002
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[counters] Making runtime counters reentrant. So far counters did not work when they were reentrant and thus would lead to wrong bookkeeping of the counter stack. Using a separate stack-allocated linked list to track the timer stack solves this issue. This is a temporary workaround with the limitations of the counter system in mind. Eventually we will move to the trace-based system for these kind of statistics. BUG=v8:4770 LOG=n Committed: https://crrev.com/5e468666b7ff0893b6c9614b4c70a6f7b1dcb027 Cr-Commit-Position: refs/heads/master@{#34208}

Patch Set 1 #

Total comments: 2

Patch Set 2 : using stack-allocated RuntimeCallTimerScope #

Patch Set 3 : do proper null initialization #

Patch Set 4 : adding more counters #

Patch Set 5 : removing gc counter again #

Patch Set 6 : gc counter removal #

Patch Set 7 : more fixes #

Patch Set 8 : merge with master #

Patch Set 9 : missing includes #

Patch Set 10 : fixing comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -102 lines) Patch
M src/arguments.h View 1 1 chunk +10 lines, -17 lines 0 comments Download
M src/builtins.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -9 lines 0 comments Download
M src/counters.h View 1 2 3 4 5 6 7 8 9 4 chunks +88 lines, -39 lines 0 comments Download
M src/counters.cc View 1 2 4 5 4 chunks +56 lines, -35 lines 0 comments Download
M src/vm-state.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M src/vm-state-inl.h View 1 2 3 4 5 6 7 1 chunk +9 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (15 generated)
Camillo Bruni
Hi Jaro, PTAL I had to adapt the counters again... they didn't handle reentrant builtins/runtime ...
4 years, 10 months ago (2016-02-12 13:40:07 UTC) #2
Jarin
nice, lgtm. Have you tried to measure the overhead of the book-keeping? Funnily, I was ...
4 years, 10 months ago (2016-02-13 19:28:20 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1695733002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1695733002/40001
4 years, 10 months ago (2016-02-15 17:27:07 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_nodcheck_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel/builds/12251) v8_win_compile_dbg on ...
4 years, 10 months ago (2016-02-15 17:31:19 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/1695733002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1695733002/100001
4 years, 10 months ago (2016-02-15 19:32:51 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_mipsel_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_mipsel_compile_rel/builds/10254)
4 years, 10 months ago (2016-02-15 19:36:42 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1695733002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1695733002/140001
4 years, 10 months ago (2016-02-22 20:06:31 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_arm64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel/builds/15694) v8_win_nosnap_shared_compile_rel on ...
4 years, 10 months ago (2016-02-22 20:10:58 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1695733002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1695733002/160001
4 years, 10 months ago (2016-02-22 21:35:03 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-22 22:01:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1695733002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1695733002/180001
4 years, 10 months ago (2016-02-23 08:22:01 UTC) #25
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 10 months ago (2016-02-23 08:45:56 UTC) #26
commit-bot: I haz the power
4 years, 10 months ago (2016-02-23 08:46:28 UTC) #28
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/5e468666b7ff0893b6c9614b4c70a6f7b1dcb027
Cr-Commit-Position: refs/heads/master@{#34208}

Powered by Google App Engine
This is Rietveld 408576698