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

Side by Side Diff: src/incremental-marking.h

Issue 9817002: Add OS::GetCurrentProcessId and prepend output from trace-gc with the current pid (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: updates Created 8 years, 5 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 | « src/heap.cc ('k') | src/incremental-marking.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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 MarkingDeque* marking_deque() { return &marking_deque_; } 208 MarkingDeque* marking_deque() { return &marking_deque_; }
209 209
210 bool IsCompacting() { return IsMarking() && is_compacting_; } 210 bool IsCompacting() { return IsMarking() && is_compacting_; }
211 211
212 void ActivateGeneratedStub(Code* stub); 212 void ActivateGeneratedStub(Code* stub);
213 213
214 void NotifyOfHighPromotionRate() { 214 void NotifyOfHighPromotionRate() {
215 if (IsMarking()) { 215 if (IsMarking()) {
216 if (allocation_marking_factor_ < kFastMarking) { 216 if (allocation_marking_factor_ < kFastMarking) {
217 if (FLAG_trace_gc) { 217 if (FLAG_trace_gc) {
218 PrintF("Increasing marking speed to %d due to high promotion rate\n", 218 PrintPID("Increasing marking speed to %d "
219 static_cast<int>(kFastMarking)); 219 "due to high promotion rate\n",
220 static_cast<int>(kFastMarking));
220 } 221 }
221 allocation_marking_factor_ = kFastMarking; 222 allocation_marking_factor_ = kFastMarking;
222 } 223 }
223 } 224 }
224 } 225 }
225 226
226 void EnterNoMarkingScope() { 227 void EnterNoMarkingScope() {
227 no_marking_scope_depth_++; 228 no_marking_scope_depth_++;
228 } 229 }
229 230
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 intptr_t allocated_; 285 intptr_t allocated_;
285 286
286 int no_marking_scope_depth_; 287 int no_marking_scope_depth_;
287 288
288 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 289 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
289 }; 290 };
290 291
291 } } // namespace v8::internal 292 } } // namespace v8::internal
292 293
293 #endif // V8_INCREMENTAL_MARKING_H_ 294 #endif // V8_INCREMENTAL_MARKING_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698