src/hotspot/os_cpu/linux_x86/gc/z/zArguments_linux_x86.cpp
changeset 53221 3f4f81fbc989
parent 53086 026842c1809f
equal deleted inserted replaced
53220:c14b7b6a9b2f 53221:3f4f81fbc989
     1 /*
     1 /*
     2  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    26 #include "runtime/globals.hpp"
    26 #include "runtime/globals.hpp"
    27 #include "runtime/globals_extension.hpp"
    27 #include "runtime/globals_extension.hpp"
    28 #include "utilities/debug.hpp"
    28 #include "utilities/debug.hpp"
    29 
    29 
    30 void ZArguments::initialize_platform() {
    30 void ZArguments::initialize_platform() {
       
    31 #ifdef COMPILER2
    31   // The C2 barrier slow path expects vector registers to be least
    32   // The C2 barrier slow path expects vector registers to be least
    32   // 16 bytes wide, which is the minimum width available on all
    33   // 16 bytes wide, which is the minimum width available on all
    33   // x86-64 systems. However, the user could have speficied a lower
    34   // x86-64 systems. However, the user could have speficied a lower
    34   // number on the command-line, in which case we print a warning
    35   // number on the command-line, in which case we print a warning
    35   // and raise it to 16.
    36   // and raise it to 16.
    36   if (MaxVectorSize < 16) {
    37   if (MaxVectorSize < 16) {
    37     warning("ZGC requires MaxVectorSize to be at least 16");
    38     warning("ZGC requires MaxVectorSize to be at least 16");
    38     FLAG_SET_DEFAULT(MaxVectorSize, 16);
    39     FLAG_SET_DEFAULT(MaxVectorSize, 16);
    39   }
    40   }
       
    41 #endif
    40 }
    42 }