-
Notifications
You must be signed in to change notification settings - Fork 728
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
Implement JEP 451: Prepare to Disallow the Dynamic Loading of Agents #17932
Conversation
jcl/src/java.base/share/classes/openj9/internal/tools/attach/target/DiagnosticUtils.java
Outdated
Show resolved
Hide resolved
jcl/src/java.base/share/classes/openj9/internal/tools/attach/target/DiagnosticUtils.java
Outdated
Show resolved
Hide resolved
jcl/src/java.base/share/classes/openj9/internal/tools/attach/target/DiagnosticUtils.java
Outdated
Show resolved
Hide resolved
jcl/src/java.base/share/classes/openj9/internal/tools/attach/target/DiagnosticUtils.java
Outdated
Show resolved
Hide resolved
jcl/src/java.base/share/classes/openj9/internal/tools/attach/target/DiagnosticUtils.java
Outdated
Show resolved
Hide resolved
The line endings check failed.
|
The JEP is for jdk21 but many of the changes to OpenJ9 apply to all versions so I've removed the jdk21 label. |
There hasn't been any doc issue created for |
Only JDK21 prints the warning message. |
jcl/src/java.base/share/classes/openj9/internal/tools/attach/target/DiagnosticUtils.java
Outdated
Show resolved
Hide resolved
jcl/src/java.base/share/classes/openj9/internal/tools/attach/target/DiagnosticUtils.java
Show resolved
Hide resolved
Print warning message when loading an agent via AttachAPI loadAgentLibraryImpl() if -XX:+EnableDynamicAgentLoading is not specified, and the agent wasn't loaded before; Added isAgentLibraryLoaded() to determine if an agent has been loaded already; Implemented JVM_PrintWarningAtDynamicAgentLoad(); Added jcmd command JVMTI.agent_load; Updated a few trace points within loadAgentLibraryGeneric(). Signed-off-by: Jason Feng <[email protected]>
Jenkins test sanity aix,zlinux,win jdk17 |
Created |
Implement JEP 451: Prepare to Disallow the Dynamic Loading of Agents
Print warning message when loading an agent via
AttachAPI
loadAgentLibraryImpl()
if-XX:+EnableDynamicAgentLoading
is not specified, and the agent wasn't loaded before;Added
isAgentLibraryLoaded()
to determine if an agent has been loaded already;Implemented
JVM_PrintWarningAtDynamicAgentLoad()
;Added
jcmd
commandJVMTI.agent_load
to support openjdk testtest/jdk/com/sun/tools/attach/warnings/DynamicLoadWarningTest.java
;Updated a few trace points within
loadAgentLibraryGeneric()
.This passes an internal grinder
openjdk
test/jdk/com/sun/tools/attach/warnings/DynamicLoadWarningTest.java
w/related
Signed-off-by: Jason Feng [email protected]