Skip to content

Conversation

@superajun-wsj
Copy link
Collaborator

both -server17 and -cvm are supported and they indicate the same vm.

cvm.mk Outdated
echo "-server KNOWN" >> $(CVM8_LIBDIR)/jvm.cfg
echo "-client IGNORE" >> $(CVM8_LIBDIR)/jvm.cfg
echo "-server17 KNOWN" > $(OUTPUTDIR)/$(DISTRO_NAME)/jre/lib/$(ARCH_DIR)/jvm.cfg
echo "-cvm KNOWN" >> $(OUTPUTDIR)/$(DISTRO_NAME)/jre/lib/$(ARCH_DIR)/jvm.cfg
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we generate $(CVM8_LIBDIR)/jvm.cfg and copy to $(OUTPUTDIR)/$(DISTRO_NAME)/jre/lib/$(ARCH_DIR)/?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

cvm.mk Outdated
cp -f $(SRC_BUILDDIR_17)/jdk/lib/server/libjvm.debuginfo $(CVM8_LIBDIR)/server17/libjvm.debuginfo && \
[[ "x$$(grep server17 $(CVM8_LIBDIR)/jvm.cfg)" = "x" ]] && echo "-server17 KNOWN" >> $(CVM8_LIBDIR)/jvm.cfg && \
[[ "x$$(grep cvm $(CVM8_LIBDIR)/jvm.cfg)" = "x" ]] && echo "-cvm KNOWN" >> $(CVM8_LIBDIR)/jvm.cfg; \
pushd $(CVM8_LIBDIR) && rm -rf cvm && ln -sf server17 cvm && popd; \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ln -sf is enough, manpage says:

NAME
       ln - make links between files
......
       -f, --force
              remove existing destination files

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

both -server17 and -cvm are supported and they indicate the same vm.
@superajun-wsj superajun-wsj force-pushed the jdk17u-target8-cvm-compatible branch from 59a0693 to 85292a2 Compare November 7, 2025 10:09
@luchsh luchsh merged commit b7e56a4 into jdk17u-target8 Nov 10, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants