4056 // Set flags based on ergonomics. |
4056 // Set flags based on ergonomics. |
4057 set_ergonomics_flags(); |
4057 set_ergonomics_flags(); |
4058 |
4058 |
4059 set_shared_spaces_flags(); |
4059 set_shared_spaces_flags(); |
4060 |
4060 |
|
4061 #if defined(SPARC) |
|
4062 // BIS instructions require 'membar' instruction regardless of the number |
|
4063 // of CPUs because in virtualized/container environments which might use only 1 |
|
4064 // CPU, BIS instructions may produce incorrect results. |
|
4065 |
|
4066 if (FLAG_IS_DEFAULT(AssumeMP)) { |
|
4067 FLAG_SET_DEFAULT(AssumeMP, true); |
|
4068 } |
|
4069 #endif |
|
4070 |
4061 // Check the GC selections again. |
4071 // Check the GC selections again. |
4062 if (!check_gc_consistency()) { |
4072 if (!check_gc_consistency()) { |
4063 return JNI_EINVAL; |
4073 return JNI_EINVAL; |
4064 } |
4074 } |
4065 |
4075 |