|
[heap] GC flag cleanup/restructuring.
* GC's flags are now proper flags and not int.
* Callback flags are not threaded through but only set once like gc flags
* Callers of methods that trigger GCs need to pass a reason when not using
the default parameters.
Furthermore, each GC invocation can be passed the GC and GCCallback flags. We
usually override the currently set flags upon finishing a GC cylce, but are able
to restore the previously set if desired. This is useful for explicitely
triggered scavenges or external requests that interrupt the current behaviour.
BUG=
Committed: https://crrev.com/f4f3b431b9ce0778d926acf03c0d36dae5c0cba4
Cr-Commit-Position: refs/heads/master@{#30457}
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+251 lines, -194 lines) |
Patch |
|
M |
src/api.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/debug/debug.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/extensions/statistics-extension.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/heap-snapshot-generator.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/heap/heap.h
|
View
|
1
2
3
4
5
6
7
|
9 chunks |
+68 lines, -26 lines |
0 comments
|
Download
|
|
M |
src/heap/heap.cc
|
View
|
1
2
3
4
5
6
7
|
16 chunks |
+31 lines, -32 lines |
0 comments
|
Download
|
|
M |
src/heap/heap-inl.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+41 lines, -30 lines |
0 comments
|
Download
|
|
M |
src/heap/memory-reducer.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/log.cc
|
View
|
1
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime-debug.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/cctest/test-api.cc
|
View
|
1
2
3
4
|
22 chunks |
+37 lines, -33 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-debug.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-heap.cc
|
View
|
1
2
3
4
5
6
7
|
21 chunks |
+33 lines, -32 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-log.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/cctest/test-mementos.cc
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-object-observe.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
test/cctest/test-weakmaps.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-weaksets.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
Total messages: 24 (9 generated)
|