8216385: ZGC: Fix building without C2
authorpliden
Wed, 09 Jan 2019 10:18:37 +0100
changeset 53221 3f4f81fbc989
parent 53220 c14b7b6a9b2f
child 53222 8be214962266
8216385: ZGC: Fix building without C2 Reviewed-by: shade, eosterlund
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
 }