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

Unified Diff: src/isolate.h

Issue 12207207: Added system thread manager class. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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 | « src/flag-definitions.h ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index b0142bff0d9e536c259b769d6dc2ce17b1a8518a..500c691eafe7d6da7d43ee5bd5b6fcfddc209f29 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -287,6 +287,20 @@ class ThreadLocalTop BASE_EMBEDDED {
};
+class SystemThreadManager {
+ public:
+ enum ParallelSystemComponent {
+ PARALLEL_SWEEPING,
+ CONCURRENT_SWEEPING,
+ PARALLEL_MARKING
+ };
+
+ static int NumberOfParallelSystemThreads(ParallelSystemComponent type);
+
+ static const int kMaxThreads = 4;
+};
+
+
#ifdef ENABLE_DEBUGGER_SUPPORT
#define ISOLATE_DEBUGGER_INIT_LIST(V) \
« no previous file with comments | « src/flag-definitions.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698