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

Side by Side Diff: src/heap/heap.h

Issue 1180263006: Only shrink new space when we are not in the process of obtaining pretenuring feedback. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | src/heap/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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after
1855 // reporting/verification activities when compiled with DEBUG set. 1855 // reporting/verification activities when compiled with DEBUG set.
1856 void GarbageCollectionPrologue(); 1856 void GarbageCollectionPrologue();
1857 void GarbageCollectionEpilogue(); 1857 void GarbageCollectionEpilogue();
1858 1858
1859 void PreprocessStackTraces(); 1859 void PreprocessStackTraces();
1860 1860
1861 // Pretenuring decisions are made based on feedback collected during new 1861 // Pretenuring decisions are made based on feedback collected during new
1862 // space evacuation. Note that between feedback collection and calling this 1862 // space evacuation. Note that between feedback collection and calling this
1863 // method object in old space must not move. 1863 // method object in old space must not move.
1864 // Right now we only process pretenuring feedback in high promotion mode. 1864 // Right now we only process pretenuring feedback in high promotion mode.
1865 void ProcessPretenuringFeedback(); 1865 bool ProcessPretenuringFeedback();
1866 1866
1867 // Checks whether a global GC is necessary 1867 // Checks whether a global GC is necessary
1868 GarbageCollector SelectGarbageCollector(AllocationSpace space, 1868 GarbageCollector SelectGarbageCollector(AllocationSpace space,
1869 const char** reason); 1869 const char** reason);
1870 1870
1871 // Make sure there is a filler value behind the top of the new space 1871 // Make sure there is a filler value behind the top of the new space
1872 // so that the GC does not confuse some unintialized/stale memory 1872 // so that the GC does not confuse some unintialized/stale memory
1873 // with the allocation memento of the object at the top 1873 // with the allocation memento of the object at the top
1874 void EnsureFillerObjectAtTop(); 1874 void EnsureFillerObjectAtTop();
1875 1875
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
2823 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2823 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2824 2824
2825 private: 2825 private:
2826 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2826 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2827 }; 2827 };
2828 #endif // DEBUG 2828 #endif // DEBUG
2829 } 2829 }
2830 } // namespace v8::internal 2830 } // namespace v8::internal
2831 2831
2832 #endif // V8_HEAP_HEAP_H_ 2832 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698