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

Side by Side Diff: src/heap.cc

Issue 660266: Account GlobalHandles::PostGarbageCollectionProcessing() as external time in ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 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
« no previous file with comments | « no previous file | 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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 old_gen_size + Max(kMinimumPromotionLimit, old_gen_size / 3); 587 old_gen_size + Max(kMinimumPromotionLimit, old_gen_size / 3);
588 old_gen_allocation_limit_ = 588 old_gen_allocation_limit_ =
589 old_gen_size + Max(kMinimumAllocationLimit, old_gen_size / 2); 589 old_gen_size + Max(kMinimumAllocationLimit, old_gen_size / 2);
590 old_gen_exhausted_ = false; 590 old_gen_exhausted_ = false;
591 } 591 }
592 592
593 Counters::objs_since_last_young.Set(0); 593 Counters::objs_since_last_young.Set(0);
594 594
595 if (collector == MARK_COMPACTOR) { 595 if (collector == MARK_COMPACTOR) {
596 DisableAssertNoAllocation allow_allocation; 596 DisableAssertNoAllocation allow_allocation;
597 GCTracer::ExternalScope scope(tracer);
597 GlobalHandles::PostGarbageCollectionProcessing(); 598 GlobalHandles::PostGarbageCollectionProcessing();
598 } 599 }
599 600
600 // Update relocatables. 601 // Update relocatables.
601 Relocatable::PostGarbageCollectionProcessing(); 602 Relocatable::PostGarbageCollectionProcessing();
602 603
603 if (collector == MARK_COMPACTOR) { 604 if (collector == MARK_COMPACTOR) {
604 // Register the amount of external allocated memory. 605 // Register the amount of external allocated memory.
605 amount_of_external_allocated_memory_at_last_global_gc_ = 606 amount_of_external_allocated_memory_at_last_global_gc_ =
606 amount_of_external_allocated_memory_; 607 amount_of_external_allocated_memory_;
(...skipping 3630 matching lines...) Expand 10 before | Expand all | Expand 10 after
4237 void ExternalStringTable::TearDown() { 4238 void ExternalStringTable::TearDown() {
4238 new_space_strings_.Free(); 4239 new_space_strings_.Free();
4239 old_space_strings_.Free(); 4240 old_space_strings_.Free();
4240 } 4241 }
4241 4242
4242 4243
4243 List<Object*> ExternalStringTable::new_space_strings_; 4244 List<Object*> ExternalStringTable::new_space_strings_;
4244 List<Object*> ExternalStringTable::old_space_strings_; 4245 List<Object*> ExternalStringTable::old_space_strings_;
4245 4246
4246 } } // namespace v8::internal 4247 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698