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

Side by Side Diff: src/spaces.h

Issue 207613004: Do not left-trim arrays when concurrent sweeping is active. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« src/mark-compact.cc ('K') | « src/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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 intptr_t GetFlags() { return flags_; } 468 intptr_t GetFlags() { return flags_; }
469 469
470 470
471 // PARALLEL_SWEEPING_PENDING - This page is ready for parallel sweeping. 471 // PARALLEL_SWEEPING_PENDING - This page is ready for parallel sweeping.
472 // PARALLEL_SWEEPING_IN_PROGRESS - This page is currently swept or was 472 // PARALLEL_SWEEPING_IN_PROGRESS - This page is currently swept or was
473 // swept by a sweeper thread. 473 // swept by a sweeper thread.
474 // PARALLEL_SWEEPING_DONE - The page state when sweeping is complete or 474 // PARALLEL_SWEEPING_DONE - The page state when sweeping is complete or
475 // sweeping must not be performed on that page. 475 // sweeping must not be performed on that page.
476 enum ParallelSweepingState { 476 enum ParallelSweepingState {
477 PARALLEL_SWEEPING_DONE, 477 PARALLEL_SWEEPING_DONE,
478 PARALLEL_SWEEPING_FINALIZE,
Michael Starzinger 2014/03/24 12:21:35 Please add a comment explaining the semantics of t
Hannes Payer (out of office) 2014/03/25 11:41:08 Done.
478 PARALLEL_SWEEPING_IN_PROGRESS, 479 PARALLEL_SWEEPING_IN_PROGRESS,
479 PARALLEL_SWEEPING_PENDING 480 PARALLEL_SWEEPING_PENDING
480 }; 481 };
481 482
482 ParallelSweepingState parallel_sweeping() { 483 ParallelSweepingState parallel_sweeping() {
483 return static_cast<ParallelSweepingState>( 484 return static_cast<ParallelSweepingState>(
484 NoBarrier_Load(&parallel_sweeping_)); 485 NoBarrier_Load(&parallel_sweeping_));
485 } 486 }
486 487
487 void set_parallel_sweeping(ParallelSweepingState state) { 488 void set_parallel_sweeping(ParallelSweepingState state) {
(...skipping 2490 matching lines...) Expand 10 before | Expand all | Expand 10 after
2978 } 2979 }
2979 // Must be small, since an iteration is used for lookup. 2980 // Must be small, since an iteration is used for lookup.
2980 static const int kMaxComments = 64; 2981 static const int kMaxComments = 64;
2981 }; 2982 };
2982 #endif 2983 #endif
2983 2984
2984 2985
2985 } } // namespace v8::internal 2986 } } // namespace v8::internal
2986 2987
2987 #endif // V8_SPACES_H_ 2988 #endif // V8_SPACES_H_
OLDNEW
« src/mark-compact.cc ('K') | « src/mark-compact.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698