1882 // Method for adding checks for flag consistency. |
1882 // Method for adding checks for flag consistency. |
1883 // The intent is to warn the user of all possible conflicts, |
1883 // The intent is to warn the user of all possible conflicts, |
1884 // before returning an error. |
1884 // before returning an error. |
1885 // Note: Needs platform-dependent factoring. |
1885 // Note: Needs platform-dependent factoring. |
1886 bool status = true; |
1886 bool status = true; |
1887 |
|
1888 #if ( (defined(COMPILER2) && defined(SPARC))) |
|
1889 // NOTE: The call to VM_Version_init depends on the fact that VM_Version_init |
|
1890 // on sparc doesn't require generation of a stub as is the case on, e.g., |
|
1891 // x86. Normally, VM_Version_init must be called from init_globals in |
|
1892 // init.cpp, which is called by the initial java thread *after* arguments |
|
1893 // have been parsed. VM_Version_init gets called twice on sparc. |
|
1894 extern void VM_Version_init(); |
|
1895 VM_Version_init(); |
|
1896 if (!VM_Version::has_v9()) { |
|
1897 jio_fprintf(defaultStream::error_stream(), |
|
1898 "V8 Machine detected, Server requires V9\n"); |
|
1899 status = false; |
|
1900 } |
|
1901 #endif /* COMPILER2 && SPARC */ |
|
1902 |
1887 |
1903 // Allow both -XX:-UseStackBanging and -XX:-UseBoundThreads in non-product |
1888 // Allow both -XX:-UseStackBanging and -XX:-UseBoundThreads in non-product |
1904 // builds so the cost of stack banging can be measured. |
1889 // builds so the cost of stack banging can be measured. |
1905 #if (defined(PRODUCT) && defined(SOLARIS)) |
1890 #if (defined(PRODUCT) && defined(SOLARIS)) |
1906 if (!UseBoundThreads && !UseStackBanging) { |
1891 if (!UseBoundThreads && !UseStackBanging) { |