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

Side by Side Diff: src/heap.h

Issue 24269003: Add methods to enable configuration of ResourceConstraints based on limits derived at runtime. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/api.cc ('k') | src/heap.cc » ('j') | src/heap.cc » ('J')
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 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after
2330 static const int kMaxMarkSweepsInIdleRound = 7; 2330 static const int kMaxMarkSweepsInIdleRound = 7;
2331 static const int kIdleScavengeThreshold = 5; 2331 static const int kIdleScavengeThreshold = 5;
2332 2332
2333 // Shared state read by the scavenge collector and set by ScavengeObject. 2333 // Shared state read by the scavenge collector and set by ScavengeObject.
2334 PromotionQueue promotion_queue_; 2334 PromotionQueue promotion_queue_;
2335 2335
2336 // Flag is set when the heap has been configured. The heap can be repeatedly 2336 // Flag is set when the heap has been configured. The heap can be repeatedly
2337 // configured through the API until it is set up. 2337 // configured through the API until it is set up.
2338 bool configured_; 2338 bool configured_;
2339 2339
2340 // Flag is set if the heap has been configured with any value different from
2341 // the default values.
2342 bool limits_changed_from_defaults_;
Hannes Payer (out of office) 2013/09/19 14:50:57 Why do we need that? If the embedder decides to ov
rmcilroy 2013/09/19 15:01:34 This is not to prevent the embedder overwriting th
2343
2340 ExternalStringTable external_string_table_; 2344 ExternalStringTable external_string_table_;
2341 2345
2342 VisitorDispatchTable<ScavengingCallback> scavenging_visitors_table_; 2346 VisitorDispatchTable<ScavengingCallback> scavenging_visitors_table_;
2343 2347
2344 MemoryChunk* chunks_queued_for_free_; 2348 MemoryChunk* chunks_queued_for_free_;
2345 2349
2346 Mutex* relocation_mutex_; 2350 Mutex* relocation_mutex_;
2347 #ifdef DEBUG 2351 #ifdef DEBUG
2348 bool relocation_mutex_locked_by_optimizer_thread_; 2352 bool relocation_mutex_locked_by_optimizer_thread_;
2349 #endif // DEBUG; 2353 #endif // DEBUG;
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
3023 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3027 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3024 3028
3025 private: 3029 private:
3026 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3030 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3027 }; 3031 };
3028 #endif // DEBUG 3032 #endif // DEBUG
3029 3033
3030 } } // namespace v8::internal 3034 } } // namespace v8::internal
3031 3035
3032 #endif // V8_HEAP_H_ 3036 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/heap.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698