Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EagerAppCDS] enable classpath change by replacing given env var #596

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

jia-wei-tang
Copy link
Collaborator

Summary: If user give environment vars and use
-Dcom.alibaba.cds.cp.reloc.envs, cds will change the classpath by using given environment vars to transform some paths in classpath.

Test Plan: ci jtreg
jdk/test/com/alibaba/quickstart/TestEnvVariableReplay.java jdk/test/com/alibaba/quickstart/TestEnvVariableDump.java

Reviewed-by: lingjun-cg, yuleil

Issue: #595

Copy link
Collaborator

@lingjun-cg lingjun-cg left a comment

Choose a reason for hiding this comment

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

参考具体文件的comments

hotspot/src/share/vm/runtime/quickStart.cpp Outdated Show resolved Hide resolved
hotspot/src/share/vm/runtime/quickStart.cpp Outdated Show resolved Hide resolved
hotspot/src/share/vm/runtime/quickStart.cpp Outdated Show resolved Hide resolved
hotspot/src/share/vm/runtime/quickStart.cpp Outdated Show resolved Hide resolved
hotspot/src/share/vm/runtime/quickStart.cpp Outdated Show resolved Hide resolved
hotspot/src/share/vm/runtime/quickStart.cpp Outdated Show resolved Hide resolved
hotspot/src/share/vm/runtime/quickStart.cpp Show resolved Hide resolved
hotspot/src/share/vm/runtime/quickStart.cpp Outdated Show resolved Hide resolved
hotspot/src/share/vm/runtime/quickStart.cpp Outdated Show resolved Hide resolved
Summary: If user give environment vars and use
`-Dcom.alibaba.cds.cp.reloc.envs`, cds will change the
classpath by using given environment vars to transform
some paths in classpath.

Test Plan: ci jtreg
jdk/test/com/alibaba/quickstart/TestEnvVariableReplay.java
jdk/test/com/alibaba/quickstart/TestEnvVariableDump.java

Reviewed-by: lingjun-cg, yuleil

Issue: dragonwell-project#595
@tanghaoth90 tanghaoth90 self-requested a review October 19, 2023 08:05
Copy link
Collaborator

@tanghaoth90 tanghaoth90 left a comment

Choose a reason for hiding this comment

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

It works for me.

@jia-wei-tang jia-wei-tang merged commit 6284cfd into dragonwell-project:master Oct 19, 2023
17 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.

None yet

5 participants