changeset 53112:3f4f81fbc989

8216385: ZGC: Fix building without C2 Reviewed-by: shade, eosterlund
author pliden
date Wed, 09 Jan 2019 10:18:37 +0100
parents c14b7b6a9b2f
children 8be214962266
files src/hotspot/os_cpu/linux_x86/gc/z/zArguments_linux_x86.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
 }