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

Side by Side Diff: src/heap/spaces.h

Issue 2565713002: [heap] Initialize the owner on each page after lospace allocation (Closed)
Patch Set: Simplify msan marking Created 4 years 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 | « no previous file | src/heap/spaces.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 #ifndef V8_HEAP_SPACES_H_ 5 #ifndef V8_HEAP_SPACES_H_
6 #define V8_HEAP_SPACES_H_ 6 #define V8_HEAP_SPACES_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <unordered_set> 10 #include <unordered_set>
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 kSweepingPending, 310 kSweepingPending,
311 kSweepingInProgress, 311 kSweepingInProgress,
312 }; 312 };
313 313
314 static const intptr_t kAlignment = 314 static const intptr_t kAlignment =
315 (static_cast<uintptr_t>(1) << kPageSizeBits); 315 (static_cast<uintptr_t>(1) << kPageSizeBits);
316 316
317 static const intptr_t kAlignmentMask = kAlignment - 1; 317 static const intptr_t kAlignmentMask = kAlignment - 1;
318 318
319 static const intptr_t kSizeOffset = 0; 319 static const intptr_t kSizeOffset = 0;
320 320 static const intptr_t kFlagsOffset = kSizeOffset + kSizetSize;
321 static const intptr_t kFlagsOffset = kSizeOffset + kPointerSize; 321 static const intptr_t kAreaStartOffset = kFlagsOffset + kIntptrSize;
322 static const intptr_t kAreaEndOffset = kAreaStartOffset + kPointerSize;
323 static const intptr_t kReservationOffset = kAreaEndOffset + kPointerSize;
324 static const intptr_t kOwnerOffset = kReservationOffset + 2 * kPointerSize;
322 325
323 static const size_t kMinHeaderSize = 326 static const size_t kMinHeaderSize =
324 kSizeOffset + kSizetSize // size_t size 327 kSizeOffset + kSizetSize // size_t size
325 + kIntptrSize // Flags flags_ 328 + kIntptrSize // Flags flags_
326 + kPointerSize // Address area_start_ 329 + kPointerSize // Address area_start_
327 + kPointerSize // Address area_end_ 330 + kPointerSize // Address area_end_
328 + 2 * kPointerSize // base::VirtualMemory reservation_ 331 + 2 * kPointerSize // base::VirtualMemory reservation_
329 + kPointerSize // Address owner_ 332 + kPointerSize // Address owner_
330 + kPointerSize // Heap* heap_ 333 + kPointerSize // Heap* heap_
331 + kIntSize // int progress_bar_ 334 + kIntSize // int progress_bar_
(...skipping 2572 matching lines...) Expand 10 before | Expand all | Expand 10 after
2904 PageIterator old_iterator_; 2907 PageIterator old_iterator_;
2905 PageIterator code_iterator_; 2908 PageIterator code_iterator_;
2906 PageIterator map_iterator_; 2909 PageIterator map_iterator_;
2907 LargePageIterator lo_iterator_; 2910 LargePageIterator lo_iterator_;
2908 }; 2911 };
2909 2912
2910 } // namespace internal 2913 } // namespace internal
2911 } // namespace v8 2914 } // namespace v8
2912 2915
2913 #endif // V8_HEAP_SPACES_H_ 2916 #endif // V8_HEAP_SPACES_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698