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

Unified Diff: include/v8.h

Issue 1064723005: Remove support for specifying the number of available threads (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index cdb23b4655d6b2caadde4a9bd16f45d99902e4fd..fa4eb135c84f8bb4647079c08a45a5758eaac9aa 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -4682,10 +4682,12 @@ class V8_EXPORT ResourceConstraints {
* device, in bytes.
* \param virtual_memory_limit The amount of virtual memory on the current
* device, in bytes, or zero, if there is no limit.
- * \param number_of_processors The number of CPUs available on the current
- * device.
*/
void ConfigureDefaults(uint64_t physical_memory,
+ uint64_t virtual_memory_limit);
+
+ // Deprecated, will be removed soon.
+ void ConfigureDefaults(uint64_t physical_memory,
uint64_t virtual_memory_limit,
uint32_t number_of_processors);
@@ -4698,9 +4700,13 @@ class V8_EXPORT ResourceConstraints {
uint32_t* stack_limit() const { return stack_limit_; }
// Sets an address beyond which the VM's stack may not grow.
void set_stack_limit(uint32_t* value) { stack_limit_ = value; }
- int max_available_threads() const { return max_available_threads_; }
+ V8_DEPRECATE_SOON("Unused, will be removed",
+ int max_available_threads() const) {
+ return max_available_threads_;
+ }
// Set the number of threads available to V8, assuming at least 1.
- void set_max_available_threads(int value) {
+ V8_DEPRECATE_SOON("Unused, will be removed",
+ void set_max_available_threads(int value)) {
max_available_threads_ = value;
}
size_t code_range_size() const { return code_range_size_; }
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698