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

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

Issue 2019343002: [heap] Simulate aborting compaction during --stress-compaction (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment Created 4 years, 6 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.cc ('k') | no next file » | 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 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 PRE_FREED, 443 PRE_FREED,
444 444
445 // |POOLED|: When actually freeing this chunk, only uncommit and do not 445 // |POOLED|: When actually freeing this chunk, only uncommit and do not
446 // give up the reservation as we still reuse the chunk at some point. 446 // give up the reservation as we still reuse the chunk at some point.
447 POOLED, 447 POOLED,
448 448
449 // |COMPACTION_WAS_ABORTED|: Indicates that the compaction in this page 449 // |COMPACTION_WAS_ABORTED|: Indicates that the compaction in this page
450 // has been aborted and needs special handling by the sweeper. 450 // has been aborted and needs special handling by the sweeper.
451 COMPACTION_WAS_ABORTED, 451 COMPACTION_WAS_ABORTED,
452 452
453 // |COMPACTION_WAS_ABORTED_FOR_TESTING|: During stress testing evacuation
454 // on pages is sometimes aborted. The flag is used to avoid repeatedly
455 // triggering on the same page.
456 COMPACTION_WAS_ABORTED_FOR_TESTING,
457
453 // |ANCHOR|: Flag is set if page is an anchor. 458 // |ANCHOR|: Flag is set if page is an anchor.
454 ANCHOR, 459 ANCHOR,
455 460
456 // Last flag, keep at bottom. 461 // Last flag, keep at bottom.
457 NUM_MEMORY_CHUNK_FLAGS 462 NUM_MEMORY_CHUNK_FLAGS
458 }; 463 };
459 464
460 // |kSweepingDone|: The page state when sweeping is complete or sweeping must 465 // |kSweepingDone|: The page state when sweeping is complete or sweeping must
461 // not be performed on that page. Sweeper threads that are done with their 466 // not be performed on that page. Sweeper threads that are done with their
462 // work will set this value and not touch the page anymore. 467 // work will set this value and not touch the page anymore.
(...skipping 2693 matching lines...) Expand 10 before | Expand all | Expand 10 after
3156 count = 0; 3161 count = 0;
3157 } 3162 }
3158 // Must be small, since an iteration is used for lookup. 3163 // Must be small, since an iteration is used for lookup.
3159 static const int kMaxComments = 64; 3164 static const int kMaxComments = 64;
3160 }; 3165 };
3161 #endif 3166 #endif
3162 } // namespace internal 3167 } // namespace internal
3163 } // namespace v8 3168 } // namespace v8
3164 3169
3165 #endif // V8_HEAP_SPACES_H_ 3170 #endif // V8_HEAP_SPACES_H_
OLDNEW
« no previous file with comments | « src/heap/mark-compact.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698