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

Side by Side Diff: src/global-handles.h

Issue 352763002: Grow heap slower if GC freed many global handles. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add comment Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/global-handles.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_GLOBAL_HANDLES_H_ 5 #ifndef V8_GLOBAL_HANDLES_H_
6 #define V8_GLOBAL_HANDLES_H_ 6 #define V8_GLOBAL_HANDLES_H_
7 7
8 #include "include/v8.h" 8 #include "include/v8.h"
9 #include "include/v8-profiler.h" 9 #include "include/v8-profiler.h"
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 static bool IsIndependent(Object** location); 149 static bool IsIndependent(Object** location);
150 150
151 // Tells whether global handle is near death. 151 // Tells whether global handle is near death.
152 static bool IsNearDeath(Object** location); 152 static bool IsNearDeath(Object** location);
153 153
154 // Tells whether global handle is weak. 154 // Tells whether global handle is weak.
155 static bool IsWeak(Object** location); 155 static bool IsWeak(Object** location);
156 156
157 // Process pending weak handles. 157 // Process pending weak handles.
158 // Returns true if next major GC is likely to collect more garbage. 158 // Returns the number of freed nodes.
159 bool PostGarbageCollectionProcessing(GarbageCollector collector, 159 int PostGarbageCollectionProcessing(GarbageCollector collector,
160 GCTracer* tracer); 160 GCTracer* tracer);
161 161
162 // Iterates over all strong handles. 162 // Iterates over all strong handles.
163 void IterateStrongRoots(ObjectVisitor* v); 163 void IterateStrongRoots(ObjectVisitor* v);
164 164
165 // Iterates over all handles. 165 // Iterates over all handles.
166 void IterateAllRoots(ObjectVisitor* v); 166 void IterateAllRoots(ObjectVisitor* v);
167 167
168 // Iterates over all handles that have embedder-assigned class ID. 168 // Iterates over all handles that have embedder-assigned class ID.
169 void IterateAllRootsWithClassIds(ObjectVisitor* v); 169 void IterateAllRootsWithClassIds(ObjectVisitor* v);
170 170
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 List<int> new_space_indices_; 378 List<int> new_space_indices_;
379 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES]; 379 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES];
380 380
381 DISALLOW_COPY_AND_ASSIGN(EternalHandles); 381 DISALLOW_COPY_AND_ASSIGN(EternalHandles);
382 }; 382 };
383 383
384 384
385 } } // namespace v8::internal 385 } } // namespace v8::internal
386 386
387 #endif // V8_GLOBAL_HANDLES_H_ 387 #endif // V8_GLOBAL_HANDLES_H_
OLDNEW
« no previous file with comments | « no previous file | src/global-handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698