mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8157184: java/lang/invoke/LFCaching/LFMultiThreadCachingTest.java failed with a fatal error
Add missing cache_line_size > 0 checks. Reviewed-by: vlivanov, kbarrett
This commit is contained in:
parent
7bd620bff1
commit
5acfcd3615
2 changed files with 3 additions and 2 deletions
|
@ -49,7 +49,7 @@ void VM_Version::initialize() {
|
|||
AllocatePrefetchDistance = allocate_prefetch_distance();
|
||||
AllocatePrefetchStyle = allocate_prefetch_style();
|
||||
|
||||
if (!has_blk_init()) {
|
||||
if (!has_blk_init() || cache_line_size <= 0) {
|
||||
if (AllocatePrefetchInstr == 1) {
|
||||
warning("BIS instructions required for AllocatePrefetchInstr 1 unavailable");
|
||||
FLAG_SET_DEFAULT(AllocatePrefetchInstr, 0);
|
||||
|
@ -87,7 +87,7 @@ void VM_Version::initialize() {
|
|||
FLAG_SET_DEFAULT(InteriorEntryAlignment, 4);
|
||||
}
|
||||
if (is_niagara_plus()) {
|
||||
if (has_blk_init() && UseTLAB &&
|
||||
if (has_blk_init() && (cache_line_size > 0) && UseTLAB &&
|
||||
FLAG_IS_DEFAULT(AllocatePrefetchInstr)) {
|
||||
// Use BIS instruction for TLAB allocation prefetch.
|
||||
FLAG_SET_DEFAULT(AllocatePrefetchInstr, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue