# HG changeset patch # User pliden # Date 1547025517 -3600 # Node ID 3f4f81fbc9892802031e24007a993b68d0d54180 # Parent c14b7b6a9b2f745944e91747067ce72a19de84fc 8216385: ZGC: Fix building without C2 Reviewed-by: shade, eosterlund diff -r c14b7b6a9b2f -r 3f4f81fbc989 src/hotspot/os_cpu/linux_x86/gc/z/zArguments_linux_x86.cpp --- a/src/hotspot/os_cpu/linux_x86/gc/z/zArguments_linux_x86.cpp Fri Dec 07 17:56:51 2018 +0100 +++ b/src/hotspot/os_cpu/linux_x86/gc/z/zArguments_linux_x86.cpp Wed Jan 09 10:18:37 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -28,6 +28,7 @@ #include "utilities/debug.hpp" void ZArguments::initialize_platform() { +#ifdef COMPILER2 // The C2 barrier slow path expects vector registers to be least // 16 bytes wide, which is the minimum width available on all // x86-64 systems. However, the user could have speficied a lower @@ -37,4 +38,5 @@ warning("ZGC requires MaxVectorSize to be at least 16"); FLAG_SET_DEFAULT(MaxVectorSize, 16); } +#endif }