1.1 --- a/src/cpu/sparc/vm/vm_version_sparc.cpp Thu Jul 07 10:51:07 2011 -0700 1.2 +++ b/src/cpu/sparc/vm/vm_version_sparc.cpp Fri Jul 08 09:38:48 2011 -0700 1.3 @@ -144,6 +144,18 @@ 1.4 // buf is started with ", " or is empty 1.5 _features_str = strdup(strlen(buf) > 2 ? buf + 2 : buf); 1.6 1.7 + // UseVIS is set to the smallest of what hardware supports and what 1.8 + // the command line requires. I.e., you cannot set UseVIS to 3 on 1.9 + // older UltraSparc which do not support it. 1.10 + if (UseVIS > 3) UseVIS=3; 1.11 + if (UseVIS < 0) UseVIS=0; 1.12 + if (!has_vis3()) // Drop to 2 if no VIS3 support 1.13 + UseVIS = MIN2((intx)2,UseVIS); 1.14 + if (!has_vis2()) // Drop to 1 if no VIS2 support 1.15 + UseVIS = MIN2((intx)1,UseVIS); 1.16 + if (!has_vis1()) // Drop to 0 if no VIS1 support 1.17 + UseVIS = 0; 1.18 + 1.19 #ifndef PRODUCT 1.20 if (PrintMiscellaneous && Verbose) { 1.21 tty->print("Allocation: ");