equal
deleted
inserted
replaced
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 #include "precompiled.hpp" |
24 #include "precompiled.hpp" |
25 #include "gc/z/zArguments.hpp" |
25 #include "gc/z/zArguments.hpp" |
26 #include "runtime/globals.hpp" |
|
27 #include "runtime/globals_extension.hpp" |
|
28 #include "utilities/debug.hpp" |
|
29 |
26 |
30 void ZArguments::initialize_platform() { |
27 void ZArguments::initialize_platform() { |
31 #ifdef COMPILER2 |
28 // Does nothing |
32 // The C2 barrier slow path expects vector registers to be least |
|
33 // 16 bytes wide, which is the minimum width available on all |
|
34 // x86-64 systems. However, the user could have speficied a lower |
|
35 // number on the command-line, in which case we print a warning |
|
36 // and raise it to 16. |
|
37 if (MaxVectorSize < 16) { |
|
38 warning("ZGC requires MaxVectorSize to be at least 16"); |
|
39 FLAG_SET_DEFAULT(MaxVectorSize, 16); |
|
40 } |
|
41 #endif |
|
42 } |
29 } |