--- old/src/hotspot/share/services/attachListener.hpp 2020-08-03 22:37:09.471633118 +0800 +++ new/src/hotspot/share/services/attachListener.hpp 2020-08-03 22:37:09.311633472 +0800 @@ -187,35 +187,6 @@ // complete operation by sending result code and any result data to the client virtual void complete(jint result, bufferedStream* result_stream) = 0; }; - -// Base Class for arguments parsing. -class CommandArgs : public CHeapObj { -}; - -// Arguments of HeapInspect. -struct HeapInspectArgs : public CommandArgs { - bool _live_object_only; - size_t _parallel_thread_num; - fileStream* _fs; - char* _path; - - HeapInspectArgs() : _live_object_only(false), - _parallel_thread_num(0), - _fs(NULL), - _path(NULL) { } - ~HeapInspectArgs() { - if (_path != NULL) { - FREE_C_HEAP_ARRAY(char, _path); - _path = NULL; - } - - if (_fs != NULL) { - delete _fs; - _fs = NULL; - } - } -}; - #endif // INCLUDE_SERVICES #endif // SHARE_SERVICES_ATTACHLISTENER_HPP