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