src/hotspot/share/services/attachListener.hpp
changeset 54851 f67269c129f9
parent 54065 f984aca565c1
child 55682 70fab3a8ff02
--- a/src/hotspot/share/services/attachListener.hpp	Tue May 14 15:09:31 2019 -0700
+++ b/src/hotspot/share/services/attachListener.hpp	Tue May 14 20:29:40 2019 -0400
@@ -121,7 +121,7 @@
   const char* name() const                      { return _name; }
 
   // set the operation name
-  void set_name(char* name) {
+  void set_name(const char* name) {
     assert(strlen(name) <= name_length_max, "exceeds maximum name length");
     size_t len = MIN2(strlen(name), (size_t)name_length_max);
     memcpy(_name, name, len);
@@ -148,7 +148,7 @@
   }
 
   // create an operation of a given name
-  AttachOperation(char* name) {
+  AttachOperation(const char* name) {
     set_name(name);
     for (int i=0; i<arg_count_max; i++) {
       set_arg(i, NULL);