equal
deleted
inserted
replaced
54 static int _vm_major_version; |
54 static int _vm_major_version; |
55 static int _vm_minor_version; |
55 static int _vm_minor_version; |
56 static int _vm_security_version; |
56 static int _vm_security_version; |
57 static int _vm_patch_version; |
57 static int _vm_patch_version; |
58 static int _vm_build_number; |
58 static int _vm_build_number; |
59 static unsigned int _parallel_worker_threads; |
|
60 static bool _parallel_worker_threads_initialized; |
|
61 |
59 |
62 static unsigned int nof_parallel_worker_threads(unsigned int num, |
|
63 unsigned int dem, |
|
64 unsigned int switch_pt); |
|
65 public: |
60 public: |
66 // Called as part of the runtime services initialization which is |
61 // Called as part of the runtime services initialization which is |
67 // called from the management module initialization (via init_globals()) |
62 // called from the management module initialization (via init_globals()) |
68 // after argument parsing and attaching of the main thread has |
63 // after argument parsing and attaching of the main thread has |
69 // occurred. Examines a variety of the hardware capabilities of |
64 // occurred. Examines a variety of the hardware capabilities of |
151 // Returns the number of parallel threads to be used for VM |
146 // Returns the number of parallel threads to be used for VM |
152 // work. If that number has not been calculated, do so and |
147 // work. If that number has not been calculated, do so and |
153 // save it. Returns ParallelGCThreads if it is set on the |
148 // save it. Returns ParallelGCThreads if it is set on the |
154 // command line. |
149 // command line. |
155 static unsigned int parallel_worker_threads(); |
150 static unsigned int parallel_worker_threads(); |
156 // Calculates and returns the number of parallel threads. May |
151 |
157 // be VM version specific. |
152 // Denominator for computing default ParallelGCThreads for machines with |
158 static unsigned int calc_parallel_worker_threads(); |
153 // a large number of cores. |
|
154 static uint parallel_worker_threads_denominator() { return 8; } |
159 |
155 |
160 // Does this CPU support spin wait instruction? |
156 // Does this CPU support spin wait instruction? |
161 static bool supports_on_spin_wait() { return false; } |
157 static bool supports_on_spin_wait() { return false; } |
162 }; |
158 }; |
163 |
159 |