mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-15 10:23:28 +00:00
8151030: PPC64: AllocatePrefetchStyle=4 is out of range
Cleanup prefetching code and use AllocatePrefetchLines=1 by default. Reviewed-by: goetz, mhorie, lucy
This commit is contained in:
parent
b2db7a0c9a
commit
0e07f5a7d7
@ -209,15 +209,10 @@ void VM_Version::initialize() {
|
||||
|
||||
if (FLAG_IS_DEFAULT(AllocatePrefetchStyle)) AllocatePrefetchStyle = 1;
|
||||
|
||||
if (AllocatePrefetchStyle == 4) {
|
||||
AllocatePrefetchStepSize = cache_line_size; // Need exact value.
|
||||
if (FLAG_IS_DEFAULT(AllocatePrefetchLines)) AllocatePrefetchLines = 12; // Use larger blocks by default.
|
||||
if (AllocatePrefetchDistance < 0) AllocatePrefetchDistance = 2*cache_line_size; // Default is not defined?
|
||||
} else {
|
||||
if (cache_line_size > AllocatePrefetchStepSize) AllocatePrefetchStepSize = cache_line_size;
|
||||
if (FLAG_IS_DEFAULT(AllocatePrefetchLines)) AllocatePrefetchLines = 3; // Optimistic value.
|
||||
if (AllocatePrefetchDistance < 0) AllocatePrefetchDistance = 3*cache_line_size; // Default is not defined?
|
||||
}
|
||||
if (cache_line_size > AllocatePrefetchStepSize) AllocatePrefetchStepSize = cache_line_size;
|
||||
// PPC processors have an automatic prefetch engine.
|
||||
if (FLAG_IS_DEFAULT(AllocatePrefetchLines)) AllocatePrefetchLines = 1;
|
||||
if (AllocatePrefetchDistance < 0) AllocatePrefetchDistance = 3 * cache_line_size;
|
||||
|
||||
assert(AllocatePrefetchLines > 0, "invalid value");
|
||||
if (AllocatePrefetchLines < 1) { // Set valid value in product VM.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user