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