Skip to content

Commit

Permalink
Allow GENSRC_VARHANDLES with OpenJDK MethodHandles
Browse files Browse the repository at this point in the history
GENSRC_VARHANDLES converts X-VarHandle*.template files into Java files.

X-VarHandle*.template files are located in the java.lang.invoke package
directory.

These are needed to support OpenJDK MethodHandles.

Related: eclipse-openj9/openj9#7352

Back-porting: ibmruntimes/openj9-openjdk-jdk14#6

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
  • Loading branch information
babsingh authored and Alon Shalev Housfater committed May 25, 2022
1 parent f054fe9 commit 68f9723
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions closed/custom/gensrc/GensrcVarHandles-post.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ===========================================================================
# (c) Copyright IBM Corp. 2018, 2020 All Rights Reserved
# (c) Copyright IBM Corp. 2018, 2022 All Rights Reserved
# ===========================================================================
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
Expand All @@ -18,5 +18,7 @@
# 2 along with this work; if not, see <http://www.gnu.org/licenses/>.
# ===========================================================================

# OpenJ9 uses it's own VarHandles implementation
GENSRC_JAVA_BASE := $(filter-out $(GENSRC_VARHANDLES),$(GENSRC_JAVA_BASE))
ifneq (true,$(OPENJ9_ENABLE_OPENJDK_METHODHANDLES))
# OpenJ9 uses it's own VarHandles implementation
GENSRC_JAVA_BASE := $(filter-out $(GENSRC_VARHANDLES),$(GENSRC_JAVA_BASE))
endif # OPENJ9_ENABLE_OPENJDK_METHODHANDLES

0 comments on commit 68f9723

Please sign in to comment.