Skip to content

Commit 72ce45e

Browse files
committed
SapMachine SAP#2023: Add suport for SAP JMC agent - cleanups
1 parent bc1a5fc commit 72ce45e

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
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

src/hotspot/share/runtime/arguments.cpp

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

src/hotspot/share/services/diagnosticCommand.cpp

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

356-
// SapMachine 2025-08-11
356+
// SapMachine 2025-08-11: Add support for SAP JMC agent if requested.
357357
#if defined(WITH_SAP_JMC_AGENT)
358358
JVMTIJmcAgentLoadDCmd::JVMTIJmcAgentLoadDCmd(outputStream* output, bool heap) :
359359
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)