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 7476: Allow larger semispaces. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 LargeObjectSpace* Heap::lo_space_ = NULL; 65 LargeObjectSpace* Heap::lo_space_ = NULL;
66 66
67 int Heap::promoted_space_limit_ = 0; 67 int Heap::promoted_space_limit_ = 0;
68 int Heap::old_gen_exhausted_ = false; 68 int Heap::old_gen_exhausted_ = false;
69 69
70 int Heap::amount_of_external_allocated_memory_ = 0; 70 int Heap::amount_of_external_allocated_memory_ = 0;
71 int Heap::amount_of_external_allocated_memory_at_last_global_gc_ = 0; 71 int Heap::amount_of_external_allocated_memory_at_last_global_gc_ = 0;
72 72
73 // semispace_size_ should be a power of 2 and old_generation_size_ should be 73 // semispace_size_ should be a power of 2 and old_generation_size_ should be
74 // a multiple of Page::kPageSize. 74 // a multiple of Page::kPageSize.
75 int Heap::semispace_size_ = 1*MB; 75 int Heap::semispace_size_ = 2*MB;
76 int Heap::old_generation_size_ = 512*MB; 76 int Heap::old_generation_size_ = 512*MB;
77 int Heap::initial_semispace_size_ = 256*KB; 77 int Heap::initial_semispace_size_ = 256*KB;
78 78
79 GCCallback Heap::global_gc_prologue_callback_ = NULL; 79 GCCallback Heap::global_gc_prologue_callback_ = NULL;
80 GCCallback Heap::global_gc_epilogue_callback_ = NULL; 80 GCCallback Heap::global_gc_epilogue_callback_ = NULL;
81 81
82 // Variables set based on semispace_size_ and old_generation_size_ in 82 // Variables set based on semispace_size_ and old_generation_size_ in
83 // ConfigureHeap. 83 // ConfigureHeap.
84 int Heap::young_generation_size_ = 0; // Will be 2 * semispace_size_. 84 int Heap::young_generation_size_ = 0; // Will be 2 * semispace_size_.
85 85
(...skipping 2979 matching lines...) Expand 10 before | Expand all | Expand 10 after
3065 return "Scavenge"; 3065 return "Scavenge";
3066 case MARK_COMPACTOR: 3066 case MARK_COMPACTOR:
3067 return MarkCompactCollector::HasCompacted() ? "Mark-compact" 3067 return MarkCompactCollector::HasCompacted() ? "Mark-compact"
3068 : "Mark-sweep"; 3068 : "Mark-sweep";
3069 } 3069 }
3070 return "Unknown GC"; 3070 return "Unknown GC";
3071 } 3071 }
3072 3072
3073 3073
3074 } } // namespace v8::internal 3074 } } // 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