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

Side by Side Diff: src/heap/mark-compact.cc

Issue 1917923002: Reland "Check for semaphore alignment on posix platforms. (patchset #1 id:1 of https://codereview.c… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/mark-compact.h ('k') | src/libplatform/task-queue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/heap/mark-compact.h" 5 #include "src/heap/mark-compact.h"
6 6
7 #include "src/base/atomicops.h" 7 #include "src/base/atomicops.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/base/sys-info.h" 9 #include "src/base/sys-info.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 marking_parity_(ODD_MARKING_PARITY), 55 marking_parity_(ODD_MARKING_PARITY),
56 was_marked_incrementally_(false), 56 was_marked_incrementally_(false),
57 evacuation_(false), 57 evacuation_(false),
58 heap_(heap), 58 heap_(heap),
59 marking_deque_memory_(NULL), 59 marking_deque_memory_(NULL),
60 marking_deque_memory_committed_(0), 60 marking_deque_memory_committed_(0),
61 code_flusher_(nullptr), 61 code_flusher_(nullptr),
62 embedder_heap_tracer_(nullptr), 62 embedder_heap_tracer_(nullptr),
63 have_code_to_deoptimize_(false), 63 have_code_to_deoptimize_(false),
64 compacting_(false), 64 compacting_(false),
65 pending_compaction_tasks_semaphore_(0),
66 sweeper_(heap) { 65 sweeper_(heap) {
67 } 66 }
68 67
69 #ifdef VERIFY_HEAP 68 #ifdef VERIFY_HEAP
70 class VerifyMarkingVisitor : public ObjectVisitor { 69 class VerifyMarkingVisitor : public ObjectVisitor {
71 public: 70 public:
72 explicit VerifyMarkingVisitor(Heap* heap) : heap_(heap) {} 71 explicit VerifyMarkingVisitor(Heap* heap) : heap_(heap) {}
73 72
74 void VisitPointers(Object** start, Object** end) override { 73 void VisitPointers(Object** start, Object** end) override {
75 for (Object** current = start; current < end; current++) { 74 for (Object** current = start; current < end; current++) {
(...skipping 3872 matching lines...) Expand 10 before | Expand all | Expand 10 after
3948 MarkBit mark_bit = Marking::MarkBitFrom(host); 3947 MarkBit mark_bit = Marking::MarkBitFrom(host);
3949 if (Marking::IsBlack(mark_bit)) { 3948 if (Marking::IsBlack(mark_bit)) {
3950 RelocInfo rinfo(isolate(), pc, RelocInfo::CODE_TARGET, 0, host); 3949 RelocInfo rinfo(isolate(), pc, RelocInfo::CODE_TARGET, 0, host);
3951 RecordRelocSlot(host, &rinfo, target); 3950 RecordRelocSlot(host, &rinfo, target);
3952 } 3951 }
3953 } 3952 }
3954 } 3953 }
3955 3954
3956 } // namespace internal 3955 } // namespace internal
3957 } // namespace v8 3956 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/mark-compact.h ('k') | src/libplatform/task-queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698