Hi Yasumasa,
I'm reviewing it. Just a quick comment. http://cr.openjdk.java.net/~ysuenaga/JDK-8225690/proposal.2/src/hotspot/os/linux/attachListener_linux.cpp.udiff.html + // reads a request from the given connected socket + static LinuxAttachOperation* read_request(int s); + + static bool _atexit_registered; + + public: + enum { + ATTACH_PROTOCOL_VER = 1 // protocol version + }; + enum { + ATTACH_ERROR_BADVERSION = 101 // error codes + }; + static void set_path(char* path) { if (path == NULL) { + _path[0] = '\0'; _has_path = false; } else { strncpy(_path, path, UNIX_PATH_MAX); _path[UNIX_PATH_MAX-1] = '\0'; _has_path = true; } } static void set_listener(int s) { _listener = s; } - // reads a request from the given connected socket - static LinuxAttachOperation* read_request(int s); - - public: - enum { - ATTACH_PROTOCOL_VER = 1 // protocol version - }; - enum { - ATTACH_ERROR_BADVERSION = 101 // error codes - }; - You moved public definitions of enums up in the code. All the declarations below that were private before became public now. Not sure, if it was your intention Also, the Copyright comment in this file needs an update. Thanks, Serguei On 6/26/19 07:34, Yasumasa Suenaga wrote: Hi, |
- Re: A Bug about the JVM Attach mechanism Leonid Mesnik
- Re: A Bug about the JVM Attach mechanism Alan Bateman
- Re: A Bug about the JVM Attach mechanism Krystal Mok
- Re: A Bug about the JVM Attach mechanism nijiaben
- Re: A Bug about the JVM Attach mechani... David Holmes
- Re: A Bug about the JVM Attach mec... Yasumasa Suenaga
- Re: A Bug about the JVM Attach... David Holmes
- Re: A Bug about the JVM Attach... Yasumasa Suenaga
- Re: A Bug about the JVM Attach... Yasumasa Suenaga
- Re: A Bug about the JVM Attach... serguei.spit...@oracle.com
- Re: A Bug about the JVM Attach... serguei.spit...@oracle.com
- Re: A Bug about the JVM Attach... Yasumasa Suenaga
- Re: A Bug about the JVM Attach... serguei.spit...@oracle.com
- Re: A Bug about the JVM Attach... Yasumasa Suenaga
- Re: A Bug about the JVM Attach mec... Peter Levart
- Re: A Bug about the JVM Attach... David Holmes
- Re: A Bug about the JVM Attach... Chris Plummer
- Re: A Bug about the JVM Attach... Peter Levart
- Re: A Bug about the JVM Attach... Chris Plummer
- Re: A Bug about the JVM Attach... Peter Levart
- Re: A Bug about the JVM Attach... David Holmes