1.1 --- a/src/cpu/sparc/vm/vm_version_sparc.cpp Fri Mar 27 14:37:42 2009 -0700 1.2 +++ b/src/cpu/sparc/vm/vm_version_sparc.cpp Mon Mar 30 18:19:31 2009 -0700 1.3 @@ -62,7 +62,7 @@ 1.4 if (is_niagara1()) { 1.5 // Indirect branch is the same cost as direct 1.6 if (FLAG_IS_DEFAULT(UseInlineCaches)) { 1.7 - UseInlineCaches = false; 1.8 + FLAG_SET_DEFAULT(UseInlineCaches, false); 1.9 } 1.10 #ifdef _LP64 1.11 // Single issue niagara1 is slower for CompressedOops 1.12 @@ -79,15 +79,19 @@ 1.13 #ifdef COMPILER2 1.14 // Indirect branch is the same cost as direct 1.15 if (FLAG_IS_DEFAULT(UseJumpTables)) { 1.16 - UseJumpTables = true; 1.17 + FLAG_SET_DEFAULT(UseJumpTables, true); 1.18 } 1.19 // Single-issue, so entry and loop tops are 1.20 // aligned on a single instruction boundary 1.21 if (FLAG_IS_DEFAULT(InteriorEntryAlignment)) { 1.22 - InteriorEntryAlignment = 4; 1.23 + FLAG_SET_DEFAULT(InteriorEntryAlignment, 4); 1.24 } 1.25 if (FLAG_IS_DEFAULT(OptoLoopAlignment)) { 1.26 - OptoLoopAlignment = 4; 1.27 + FLAG_SET_DEFAULT(OptoLoopAlignment, 4); 1.28 + } 1.29 + if (is_niagara1_plus() && FLAG_IS_DEFAULT(AllocatePrefetchDistance)) { 1.30 + // Use smaller prefetch distance on N2 1.31 + FLAG_SET_DEFAULT(AllocatePrefetchDistance, 256); 1.32 } 1.33 #endif 1.34 } 1.35 @@ -95,7 +99,7 @@ 1.36 // Use hardware population count instruction if available. 1.37 if (has_hardware_popc()) { 1.38 if (FLAG_IS_DEFAULT(UsePopCountInstruction)) { 1.39 - UsePopCountInstruction = true; 1.40 + FLAG_SET_DEFAULT(UsePopCountInstruction, true); 1.41 } 1.42 } 1.43