make/hotspot/gensrc/GensrcAdlc.gmk
changeset 53542 5c80e6994d8a
parent 52925 9c18c9d839d3
child 53683 48ff68e2fe5c
child 57139 94ff48d6eee4
child 57145 ceaa243112bd
--- a/make/hotspot/gensrc/GensrcAdlc.gmk	Tue Jan 29 10:23:38 2019 +0100
+++ b/make/hotspot/gensrc/GensrcAdlc.gmk	Tue Jan 29 10:23:38 2019 +0100
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2013, 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
@@ -142,6 +142,12 @@
       )))
   endif
 
+  ifeq ($(call check-jvm-feature, zgc), true)
+    AD_SRC_FILES += $(call uniq, $(wildcard $(foreach d, $(AD_SRC_ROOTS), \
+        $d/cpu/$(HOTSPOT_TARGET_CPU_ARCH)/gc/z/z_$(HOTSPOT_TARGET_CPU).ad \
+      )))
+  endif
+
   SINGLE_AD_SRCFILE := $(ADLC_SUPPORT_DIR)/all-ad-src.ad
 
   INSERT_FILENAME_AWK_SCRIPT := \