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

Side by Side Diff: src/heap.h

Issue 23604023: Bump MaxRegularSpaceAllocationSize to InitialSemiSpaceSize() * 4/5 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 7 years, 3 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/heap.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 // we reserve twice the amount needed for those in order to ensure 517 // we reserve twice the amount needed for those in order to ensure
518 // that new space can be aligned to its size. 518 // that new space can be aligned to its size.
519 intptr_t MaxReserved() { 519 intptr_t MaxReserved() {
520 return 4 * reserved_semispace_size_ + max_old_generation_size_; 520 return 4 * reserved_semispace_size_ + max_old_generation_size_;
521 } 521 }
522 int MaxSemiSpaceSize() { return max_semispace_size_; } 522 int MaxSemiSpaceSize() { return max_semispace_size_; }
523 int ReservedSemiSpaceSize() { return reserved_semispace_size_; } 523 int ReservedSemiSpaceSize() { return reserved_semispace_size_; }
524 int InitialSemiSpaceSize() { return initial_semispace_size_; } 524 int InitialSemiSpaceSize() { return initial_semispace_size_; }
525 intptr_t MaxOldGenerationSize() { return max_old_generation_size_; } 525 intptr_t MaxOldGenerationSize() { return max_old_generation_size_; }
526 intptr_t MaxExecutableSize() { return max_executable_size_; } 526 intptr_t MaxExecutableSize() { return max_executable_size_; }
527 int MaxRegularSpaceAllocationSize() { return InitialSemiSpaceSize() * 3/4; } 527 int MaxRegularSpaceAllocationSize() { return InitialSemiSpaceSize() * 4/5; }
528 528
529 // Returns the capacity of the heap in bytes w/o growing. Heap grows when 529 // Returns the capacity of the heap in bytes w/o growing. Heap grows when
530 // more spaces are needed until it reaches the limit. 530 // more spaces are needed until it reaches the limit.
531 intptr_t Capacity(); 531 intptr_t Capacity();
532 532
533 // Returns the amount of memory currently committed for the heap. 533 // Returns the amount of memory currently committed for the heap.
534 intptr_t CommittedMemory(); 534 intptr_t CommittedMemory();
535 535
536 // Returns the amount of executable memory currently committed for the heap. 536 // Returns the amount of executable memory currently committed for the heap.
537 intptr_t CommittedMemoryExecutable(); 537 intptr_t CommittedMemoryExecutable();
(...skipping 2521 matching lines...) Expand 10 before | Expand all | Expand 10 after
3059 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3059 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3060 3060
3061 private: 3061 private:
3062 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3062 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3063 }; 3063 };
3064 #endif // DEBUG 3064 #endif // DEBUG
3065 3065
3066 } } // namespace v8::internal 3066 } } // namespace v8::internal
3067 3067
3068 #endif // V8_HEAP_H_ 3068 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698