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

Issue 2310143002: [heap] Introduce enum of garbage collection reasons. (Closed)

Created:
4 years, 3 months ago by ulan
Modified:
4 years, 3 months ago
Reviewers:
Michael Lippautz
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan, Yang
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[heap] Introduce enum of garbage collection reasons. Now callers of Heap::CollectGarbage* functions need to specify the reason as an enum value instead of a string. Subsequent CL will add stats counter for GC reason. BUG= Committed: https://crrev.com/1b26611ce953e2867926af5c5c3d3f2a006384d6 Cr-Commit-Position: refs/heads/master@{#39239}

Patch Set 1 #

Patch Set 2 : x #

Patch Set 3 : rebase #

Patch Set 4 : x #

Patch Set 5 : fix win #

Total comments: 2

Patch Set 6 : move GarbageCollectionReasonToString to heap #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+703 lines, -599 lines) Patch
M src/api.cc View 4 chunks +7 lines, -6 lines 0 comments Download
M src/debug/debug.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/extensions/statistics-extension.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/factory.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M src/heap/gc-tracer.h View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M src/heap/gc-tracer.cc View 1 2 3 4 5 6 chunks +6 lines, -6 lines 0 comments Download
M src/heap/heap.h View 1 2 3 4 5 7 chunks +45 lines, -22 lines 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 19 chunks +105 lines, -51 lines 0 comments Download
M src/heap/heap-inl.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/heap/incremental-marking.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/heap/incremental-marking.cc View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
M src/heap/incremental-marking-job.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M src/heap/memory-reducer.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M src/heap/scavenge-job.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/heap/spaces.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M src/isolate.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/objects.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/profiler/heap-snapshot-generator.cc View 2 chunks +5 lines, -7 lines 0 comments Download
M src/profiler/sampling-heap-profiler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/cctest.h View 1 chunk +4 lines, -0 lines 0 comments Download
M test/cctest/cctest.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M test/cctest/heap/heap-utils.cc View 1 2 3 3 chunks +7 lines, -4 lines 0 comments Download
M test/cctest/heap/test-alloc.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/heap/test-array-buffer-tracker.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/heap/test-compaction.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M test/cctest/heap/test-heap.cc View 1 2 3 4 5 6 153 chunks +219 lines, -208 lines 0 comments Download
M test/cctest/heap/test-incremental-marking.cc View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/heap/test-mark-compact.cc View 1 2 3 4 5 6 10 chunks +13 lines, -13 lines 0 comments Download
M test/cctest/heap/test-page-promotion.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-accessors.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-api.cc View 94 chunks +144 lines, -153 lines 0 comments Download
M test/cctest/test-api-interceptors.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-cpu-profiler.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-debug.cc View 5 chunks +8 lines, -8 lines 0 comments Download
M test/cctest/test-decls.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-deoptimization.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-dictionary.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-feedback-vector.cc View 6 chunks +3 lines, -8 lines 0 comments Download
M test/cctest/test-global-handles.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 8 chunks +8 lines, -8 lines 0 comments Download
M test/cctest/test-identity-map.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-log.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-mementos.cc View 4 chunks +4 lines, -6 lines 0 comments Download
M test/cctest/test-serialize.cc View 6 chunks +11 lines, -7 lines 0 comments Download
M test/cctest/test-symbols.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/test-unboxed-doubles.cc View 7 chunks +9 lines, -9 lines 0 comments Download
M test/cctest/test-weakmaps.cc View 8 chunks +8 lines, -10 lines 0 comments Download
M test/cctest/test-weaksets.cc View 7 chunks +7 lines, -9 lines 0 comments Download
M test/unittests/heap/gc-tracer-unittest.cc View 4 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 30 (22 generated)
ulan
PTAL
4 years, 3 months ago (2016-09-06 17:48:48 UTC) #14
Michael Lippautz
lgtm (mostly rubberstamp on test/) https://codereview.chromium.org/2310143002/diff/80001/src/heap/gc-tracer.h File src/heap/gc-tracer.h (right): https://codereview.chromium.org/2310143002/diff/80001/src/heap/gc-tracer.h#newcode398 src/heap/gc-tracer.h:398: static const char* GarbageCollectionReasonToString( ...
4 years, 3 months ago (2016-09-07 07:28:31 UTC) #17
ulan
https://codereview.chromium.org/2310143002/diff/80001/src/heap/gc-tracer.h File src/heap/gc-tracer.h (right): https://codereview.chromium.org/2310143002/diff/80001/src/heap/gc-tracer.h#newcode398 src/heap/gc-tracer.h:398: static const char* GarbageCollectionReasonToString( On 2016/09/07 07:28:31, Michael Lippautz ...
4 years, 3 months ago (2016-09-07 09:25:13 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2310143002/100001
4 years, 3 months ago (2016-09-07 09:25:28 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: v8_android_arm_compile_rel on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/24059) v8_linux_arm64_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
4 years, 3 months ago (2016-09-07 09:26:58 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2310143002/120001
4 years, 3 months ago (2016-09-07 09:33:53 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-07 10:03:03 UTC) #28
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 10:03:19 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/1b26611ce953e2867926af5c5c3d3f2a006384d6
Cr-Commit-Position: refs/heads/master@{#39239}

Powered by Google App Engine
This is Rietveld 408576698