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

Side by Side Diff: src/spaces.cc

Issue 163683003: The sweeper thread should not write the page flags. Added a sweeping complete phase, where the main… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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
« no previous file with comments | « src/spaces.h ('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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 chunk->area_start_ = area_start; 476 chunk->area_start_ = area_start;
477 chunk->area_end_ = area_end; 477 chunk->area_end_ = area_end;
478 chunk->flags_ = 0; 478 chunk->flags_ = 0;
479 chunk->set_owner(owner); 479 chunk->set_owner(owner);
480 chunk->InitializeReservedMemory(); 480 chunk->InitializeReservedMemory();
481 chunk->slots_buffer_ = NULL; 481 chunk->slots_buffer_ = NULL;
482 chunk->skip_list_ = NULL; 482 chunk->skip_list_ = NULL;
483 chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity; 483 chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity;
484 chunk->progress_bar_ = 0; 484 chunk->progress_bar_ = 0;
485 chunk->high_water_mark_ = static_cast<int>(area_start - base); 485 chunk->high_water_mark_ = static_cast<int>(area_start - base);
486 chunk->parallel_sweeping_ = 0; 486 chunk->set_parallel_sweeping(PARALLEL_SWEEPING_DONE);
487 chunk->available_in_small_free_list_ = 0; 487 chunk->available_in_small_free_list_ = 0;
488 chunk->available_in_medium_free_list_ = 0; 488 chunk->available_in_medium_free_list_ = 0;
489 chunk->available_in_large_free_list_ = 0; 489 chunk->available_in_large_free_list_ = 0;
490 chunk->available_in_huge_free_list_ = 0; 490 chunk->available_in_huge_free_list_ = 0;
491 chunk->non_available_small_blocks_ = 0; 491 chunk->non_available_small_blocks_ = 0;
492 chunk->ResetLiveBytes(); 492 chunk->ResetLiveBytes();
493 Bitmap::Clear(chunk); 493 Bitmap::Clear(chunk);
494 chunk->initialize_scan_on_scavenge(false); 494 chunk->initialize_scan_on_scavenge(false);
495 chunk->SetFlag(WAS_SWEPT_PRECISELY); 495 chunk->SetFlag(WAS_SWEPT_PRECISELY);
496 496
(...skipping 2704 matching lines...) Expand 10 before | Expand all | Expand 10 after
3201 object->ShortPrint(); 3201 object->ShortPrint();
3202 PrintF("\n"); 3202 PrintF("\n");
3203 } 3203 }
3204 printf(" --------------------------------------\n"); 3204 printf(" --------------------------------------\n");
3205 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 3205 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
3206 } 3206 }
3207 3207
3208 #endif // DEBUG 3208 #endif // DEBUG
3209 3209
3210 } } // namespace v8::internal 3210 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/spaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698