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

Side by Side Diff: src/heap.h

Issue 15737007: Make more GCs in idle notification handler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Correctly finish idle round. Created 7 years, 7 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 2248 matching lines...) Expand 10 before | Expand all | Expand 10 after
2259 } 2259 }
2260 2260
2261 bool IsLowSurvivalRate() { 2261 bool IsLowSurvivalRate() {
2262 return low_survival_rate_period_length_ > 0; 2262 return low_survival_rate_period_length_ > 0;
2263 } 2263 }
2264 2264
2265 void SelectScavengingVisitorsTable(); 2265 void SelectScavengingVisitorsTable();
2266 2266
2267 void StartIdleRound() { 2267 void StartIdleRound() {
2268 mark_sweeps_since_idle_round_started_ = 0; 2268 mark_sweeps_since_idle_round_started_ = 0;
2269 ms_count_at_last_idle_notification_ = ms_count_;
2270 } 2269 }
2271 2270
2272 void FinishIdleRound() { 2271 void FinishIdleRound() {
2273 mark_sweeps_since_idle_round_started_ = kMaxMarkSweepsInIdleRound; 2272 mark_sweeps_since_idle_round_started_ = kMaxMarkSweepsInIdleRound;
2274 scavenges_since_last_idle_round_ = 0; 2273 scavenges_since_last_idle_round_ = 0;
2275 } 2274 }
2276 2275
2277 bool EnoughGarbageSinceLastIdleRound() { 2276 bool EnoughGarbageSinceLastIdleRound() {
2278 return (scavenges_since_last_idle_round_ >= kIdleScavengeThreshold); 2277 return (scavenges_since_last_idle_round_ >= kIdleScavengeThreshold);
2279 } 2278 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
2336 2335
2337 Marking marking_; 2336 Marking marking_;
2338 2337
2339 IncrementalMarking incremental_marking_; 2338 IncrementalMarking incremental_marking_;
2340 2339
2341 int number_idle_notifications_; 2340 int number_idle_notifications_;
2342 unsigned int last_idle_notification_gc_count_; 2341 unsigned int last_idle_notification_gc_count_;
2343 bool last_idle_notification_gc_count_init_; 2342 bool last_idle_notification_gc_count_init_;
2344 2343
2345 int mark_sweeps_since_idle_round_started_; 2344 int mark_sweeps_since_idle_round_started_;
2346 int ms_count_at_last_idle_notification_;
2347 unsigned int gc_count_at_last_idle_gc_; 2345 unsigned int gc_count_at_last_idle_gc_;
2348 int scavenges_since_last_idle_round_; 2346 int scavenges_since_last_idle_round_;
2349 2347
2350 // If the --deopt_every_n_garbage_collections flag is set to a positive value, 2348 // If the --deopt_every_n_garbage_collections flag is set to a positive value,
2351 // this variable holds the number of garbage collections since the last 2349 // this variable holds the number of garbage collections since the last
2352 // deoptimization triggered by garbage collection. 2350 // deoptimization triggered by garbage collection.
2353 int gcs_since_last_deopt_; 2351 int gcs_since_last_deopt_;
2354 2352
2355 #ifdef VERIFY_HEAP 2353 #ifdef VERIFY_HEAP
2356 int no_weak_embedded_maps_verification_scope_depth_; 2354 int no_weak_embedded_maps_verification_scope_depth_;
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
3082 AssertNoAllocation no_alloc; // i.e. no gc allowed. 3080 AssertNoAllocation no_alloc; // i.e. no gc allowed.
3083 3081
3084 private: 3082 private:
3085 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3083 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3086 }; 3084 };
3087 #endif // DEBUG 3085 #endif // DEBUG
3088 3086
3089 } } // namespace v8::internal 3087 } } // namespace v8::internal
3090 3088
3091 #endif // V8_HEAP_H_ 3089 #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