mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 20:44:41 +02:00
7079329: Adjust allocation prefetching for T4
On T4 2 BIS instructions should be issued to prefetch 64 bytes Reviewed-by: iveresov, phh, twisti
This commit is contained in:
parent
080f790edc
commit
90651b2666
18 changed files with 299 additions and 129 deletions
|
@ -44,6 +44,7 @@ class Abstract_VM_Version: AllStatic {
|
|||
static bool _initialized;
|
||||
static int _parallel_worker_threads;
|
||||
static bool _parallel_worker_threads_initialized;
|
||||
static int _reserve_for_allocation_prefetch;
|
||||
|
||||
static unsigned int nof_parallel_worker_threads(unsigned int num,
|
||||
unsigned int dem,
|
||||
|
@ -77,6 +78,12 @@ class Abstract_VM_Version: AllStatic {
|
|||
return _logical_processors_per_package;
|
||||
}
|
||||
|
||||
// Need a space at the end of TLAB for prefetch instructions
|
||||
// which may fault when accessing memory outside of heap.
|
||||
static int reserve_for_allocation_prefetch() {
|
||||
return _reserve_for_allocation_prefetch;
|
||||
}
|
||||
|
||||
// ARCH specific policy for the BiasedLocking
|
||||
static bool use_biased_locking() { return true; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue