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

Side by Side Diff: src/mark-compact.cc

Issue 9173001: Make heap size estimation more accurate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed more comments by Vyacheslav Egorov. Created 8 years, 11 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 | src/spaces.h » ('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 // 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 3623 matching lines...) Expand 10 before | Expand all | Expand 10 after
3634 continue; 3634 continue;
3635 } 3635 }
3636 unused_page_present = true; 3636 unused_page_present = true;
3637 } 3637 }
3638 3638
3639 if (lazy_sweeping_active) { 3639 if (lazy_sweeping_active) {
3640 if (FLAG_gc_verbose) { 3640 if (FLAG_gc_verbose) {
3641 PrintF("Sweeping 0x%" V8PRIxPTR " lazily postponed.\n", 3641 PrintF("Sweeping 0x%" V8PRIxPTR " lazily postponed.\n",
3642 reinterpret_cast<intptr_t>(p)); 3642 reinterpret_cast<intptr_t>(p));
3643 } 3643 }
3644 space->MarkPageForLazySweeping(p);
3644 continue; 3645 continue;
3645 } 3646 }
3646 3647
3647 switch (sweeper) { 3648 switch (sweeper) {
3648 case CONSERVATIVE: { 3649 case CONSERVATIVE: {
3649 if (FLAG_gc_verbose) { 3650 if (FLAG_gc_verbose) {
3650 PrintF("Sweeping 0x%" V8PRIxPTR " conservatively.\n", 3651 PrintF("Sweeping 0x%" V8PRIxPTR " conservatively.\n",
3651 reinterpret_cast<intptr_t>(p)); 3652 reinterpret_cast<intptr_t>(p));
3652 } 3653 }
3653 SweepConservatively(space, p); 3654 SweepConservatively(space, p);
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
3903 while (buffer != NULL) { 3904 while (buffer != NULL) {
3904 SlotsBuffer* next_buffer = buffer->next(); 3905 SlotsBuffer* next_buffer = buffer->next();
3905 DeallocateBuffer(buffer); 3906 DeallocateBuffer(buffer);
3906 buffer = next_buffer; 3907 buffer = next_buffer;
3907 } 3908 }
3908 *buffer_address = NULL; 3909 *buffer_address = NULL;
3909 } 3910 }
3910 3911
3911 3912
3912 } } // namespace v8::internal 3913 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698