Skip to content

Commit c17fbf2

Browse files
committed
SapMachine SAP#2023: Add suport for SAP JMC agent - cleanups
1 parent de9876a commit c17fbf2

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

make/autoconf/configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ JDKOPT_SETUP_CODE_COVERAGE
215215
# AddressSanitizer
216216
JDKOPT_SETUP_ADDRESS_SANITIZER
217217

218-
# SapMachine 2024-12-05: Setup SAP JMC agent if requested
218+
# SapMachine 2025-08-11: Setup SAP JMC agent if requested
219219
JDKOPT_SETUP_SAP_JMC_AGENT
220220

221221
# UndefinedBehaviorSanitizer

make/modules/java.base/Copy.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ ifeq ($(call isTargetOs, linux macosx), true)
257257
endif
258258

259259
################################################################################
260-
# SapMachine 2025-08-11: Copy jmc agent jars
260+
# SapMachine 2025-08-11: Copy JMC agent jars
261261
ifeq ($(SAP_JMC_AGENT_ENABLED), true)
262262
$(LIB_DST_DIR)/agent.jar: $(SAP_JMC_AGENT_PATH)/agent-$(SAP_JMC_AGENT_VERSION).jar
263263
$(call install-file)

src/hotspot/share/runtime/arguments.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2335,15 +2335,15 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args, JVMFlagOrigin
23352335
}
23362336
}
23372337
#endif // !INCLUDE_JVMTI
2338-
// SapMachine 2025-08-11: Handle jmc agent if requested.
2338+
// SapMachine 2025-08-11: Handle JMC agent if requested.
23392339
} else if (match_option(option, "-jmcagent:", &tail)) {
23402340
#if !defined(WITH_SAP_JMC_AGENT)
23412341
jio_fprintf(defaultStream::error_stream(),
23422342
"SAP JMC agent is not included in this VM\n");
23432343
return JNI_ERR;
23442344
#else
23452345
#if !INCLUDE_JVMTI
2346-
#error "Must have JVMTI enabled with SAP JVM agent"
2346+
#error "Must have JVMTI enabled with SAP JMC agent"
23472347
#endif
23482348
char const* agent_jar = "agent.jar";
23492349
if (tail != nullptr) {

src/hotspot/share/services/diagnosticCommand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ void JVMTIAgentLoadDCmd::execute(DCmdSource source, TRAPS) {
354354
}
355355
}
356356

357-
// SapMachine 2025-08-11
357+
// SapMachine 2025-08-11: Add support for SAP JMC agent if requested.
358358
#if defined(WITH_SAP_JMC_AGENT)
359359
JVMTIJmcAgentLoadDCmd::JVMTIJmcAgentLoadDCmd(outputStream* output, bool heap) :
360360
DCmdWithParser(output, heap),

src/hotspot/share/services/diagnosticCommand.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class JVMTIAgentLoadDCmd : public DCmdWithParser {
159159
virtual void execute(DCmdSource source, TRAPS);
160160
};
161161

162-
// SapMachine 2025-08-11
162+
// SapMachine 2025-08-11: Add support for SAP JMC agent if requested.
163163
#if defined(WITH_SAP_JMC_AGENT)
164164
class JVMTIJmcAgentLoadDCmd : public DCmdWithParser {
165165
protected:
@@ -169,7 +169,7 @@ class JVMTIJmcAgentLoadDCmd : public DCmdWithParser {
169169
static int num_arguments() { return 1; }
170170
static const char* name() { return "JVMTI.jmc_agent_load"; }
171171
static const char* description() {
172-
return "Load the SAP jmc agent.";
172+
return "Load the SAP JMC agent.";
173173
}
174174
static const char* impact() {
175175
return "Medium: Depends on the command or trace";

test/jdk/sap/JmcAgentIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
/**
2626
* @test
27-
* @summary Runs the test for the jmc agent integration.
27+
* @summary Runs the test for the SAP JMC agent integration.
2828
*
2929
* @run main/othervm JmcAgentIntegrationTest
3030
*/

0 commit comments

Comments
 (0)