mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-24 04:54:40 +02:00
8049717: expose L1_data_cache_line_size for diagnostic/sanity checks
Add support for VM_Version::L1_data_cache_line_size(). Reviewed-by: dsimms, kvn, dholmes
This commit is contained in:
parent
a36ef5533f
commit
a06d36cada
10 changed files with 194 additions and 17 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -42,6 +42,7 @@ class Abstract_VM_Version: AllStatic {
|
|||
static bool _supports_atomic_getadd4;
|
||||
static bool _supports_atomic_getadd8;
|
||||
static unsigned int _logical_processors_per_package;
|
||||
static unsigned int _L1_data_cache_line_size;
|
||||
static int _vm_major_version;
|
||||
static int _vm_minor_version;
|
||||
static int _vm_micro_version;
|
||||
|
@ -98,6 +99,10 @@ class Abstract_VM_Version: AllStatic {
|
|||
return _logical_processors_per_package;
|
||||
}
|
||||
|
||||
static unsigned int L1_data_cache_line_size() {
|
||||
return _L1_data_cache_line_size;
|
||||
}
|
||||
|
||||
// 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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue