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

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

Issue 2333293002: [heap] Remove old_gen_exhausted_ state. (Closed)
Patch Set: Created 4 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
« 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 2146 matching lines...) Expand 10 before | Expand all | Expand 10 after
2157 // remain until the next failure and garbage collection. 2157 // remain until the next failure and garbage collection.
2158 int allocation_timeout_; 2158 int allocation_timeout_;
2159 #endif // DEBUG 2159 #endif // DEBUG
2160 2160
2161 // Limit that triggers a global GC on the next (normally caused) GC. This 2161 // Limit that triggers a global GC on the next (normally caused) GC. This
2162 // is checked when we have already decided to do a GC to help determine 2162 // is checked when we have already decided to do a GC to help determine
2163 // which collector to invoke, before expanding a paged space in the old 2163 // which collector to invoke, before expanding a paged space in the old
2164 // generation and on every allocation in large object space. 2164 // generation and on every allocation in large object space.
2165 intptr_t old_generation_allocation_limit_; 2165 intptr_t old_generation_allocation_limit_;
2166 2166
2167 // Indicates that an allocation has failed in the old generation since the
2168 // last GC.
2169 bool old_gen_exhausted_;
2170
2171 // Indicates that inline bump-pointer allocation has been globally disabled 2167 // Indicates that inline bump-pointer allocation has been globally disabled
2172 // for all spaces. This is used to disable allocations in generated code. 2168 // for all spaces. This is used to disable allocations in generated code.
2173 bool inline_allocation_disabled_; 2169 bool inline_allocation_disabled_;
2174 2170
2175 // Weak list heads, threaded through the objects. 2171 // Weak list heads, threaded through the objects.
2176 // List heads are initialized lazily and contain the undefined_value at start. 2172 // List heads are initialized lazily and contain the undefined_value at start.
2177 Object* native_contexts_list_; 2173 Object* native_contexts_list_;
2178 Object* allocation_sites_list_; 2174 Object* allocation_sites_list_;
2179 2175
2180 // List of encountered weak collections (JSWeakMap and JSWeakSet) during 2176 // List of encountered weak collections (JSWeakMap and JSWeakSet) during
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2641 friend class LargeObjectSpace; 2637 friend class LargeObjectSpace;
2642 friend class NewSpace; 2638 friend class NewSpace;
2643 friend class PagedSpace; 2639 friend class PagedSpace;
2644 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2640 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2645 }; 2641 };
2646 2642
2647 } // namespace internal 2643 } // namespace internal
2648 } // namespace v8 2644 } // namespace v8
2649 2645
2650 #endif // V8_HEAP_HEAP_H_ 2646 #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