|
Use atomic operation to read the length of a fixed array.
This fixes a race where
- mutator changes the fixed array length by trimming it,
- sweeper thread reads the length of the fixed array.
Also rename FROM_GC and FROM_MUTATOR to be more precise.
BUG= chromium:462908
LOG=NO
Committed: https://crrev.com/aae2c01740364454b807613b8d9d66a33ee45073
Cr-Commit-Position: refs/heads/master@{#27869}
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+42 lines, -31 lines) |
Patch |
|
M |
src/elements.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/factory.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/heap/heap.h
|
View
|
1
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/heap/heap.cc
|
View
|
1
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/heap/mark-compact.cc
|
View
|
1
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/isolate.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/layout-descriptor.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/objects.cc
|
View
|
1
|
9 chunks |
+14 lines, -9 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime-regexp.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/cctest/test-heap.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 11 (4 generated)
|