145 return _reserve_for_allocation_prefetch;
146 }
147
148 // ARCH specific policy for the BiasedLocking
149 static bool use_biased_locking() { return true; }
150
151 // Number of page sizes efficiently supported by the hardware. Most chips now
152 // support two sizes, thus this default implementation. Processor-specific
153 // subclasses should define new versions to hide this one as needed. Note
154 // that the O/S may support more sizes, but at most this many are used.
155 static uint page_size_count() { return 2; }
156
157 // Returns the number of parallel threads to be used for VM
158 // work. If that number has not been calculated, do so and
159 // save it. Returns ParallelGCThreads if it is set on the
160 // command line.
161 static unsigned int parallel_worker_threads();
162 // Calculates and returns the number of parallel threads. May
163 // be VM version specific.
164 static unsigned int calc_parallel_worker_threads();
165 };
166
167 #ifdef TARGET_ARCH_x86
168 # include "vm_version_x86.hpp"
169 #endif
170 #ifdef TARGET_ARCH_sparc
171 # include "vm_version_sparc.hpp"
172 #endif
173 #ifdef TARGET_ARCH_zero
174 # include "vm_version_zero.hpp"
175 #endif
176 #ifdef TARGET_ARCH_arm
177 # include "vm_version_arm.hpp"
178 #endif
179 #ifdef TARGET_ARCH_ppc
180 # include "vm_version_ppc.hpp"
181 #endif
182
183 #endif // SHARE_VM_RUNTIME_VM_VERSION_HPP
|
145 return _reserve_for_allocation_prefetch;
146 }
147
148 // ARCH specific policy for the BiasedLocking
149 static bool use_biased_locking() { return true; }
150
151 // Number of page sizes efficiently supported by the hardware. Most chips now
152 // support two sizes, thus this default implementation. Processor-specific
153 // subclasses should define new versions to hide this one as needed. Note
154 // that the O/S may support more sizes, but at most this many are used.
155 static uint page_size_count() { return 2; }
156
157 // Returns the number of parallel threads to be used for VM
158 // work. If that number has not been calculated, do so and
159 // save it. Returns ParallelGCThreads if it is set on the
160 // command line.
161 static unsigned int parallel_worker_threads();
162 // Calculates and returns the number of parallel threads. May
163 // be VM version specific.
164 static unsigned int calc_parallel_worker_threads();
165
166 // Does this CPU support spin wait instruction?
167 static bool supports_on_spin_wait() { return false; }
168 };
169
170 #ifdef TARGET_ARCH_x86
171 # include "vm_version_x86.hpp"
172 #endif
173 #ifdef TARGET_ARCH_sparc
174 # include "vm_version_sparc.hpp"
175 #endif
176 #ifdef TARGET_ARCH_zero
177 # include "vm_version_zero.hpp"
178 #endif
179 #ifdef TARGET_ARCH_arm
180 # include "vm_version_arm.hpp"
181 #endif
182 #ifdef TARGET_ARCH_ppc
183 # include "vm_version_ppc.hpp"
184 #endif
185
186 #endif // SHARE_VM_RUNTIME_VM_VERSION_HPP
|