You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "He-Pin (via GitHub)" <gi...@apache.org> on 2026/06/23 05:23:52 UTC

[PR] refactor: use ProcessHandle.current().pid() instead of RuntimeMXBean hack [pekko]

He-Pin opened a new pull request, #3152:
URL: https://github.com/apache/pekko/pull/3152

   ### Motivation
   
   `PerfFlamesSupport.scala` parses the PID from `RuntimeMXBean.getName()` which returns `"pid@hostname"` — a pre-JDK 9 hack that depends on an undocumented string format.
   
   ### Modification
   
   Replace with `ProcessHandle.current().pid()` (JDK 9), the official API for retrieving the current process ID.
   
   ### Result
   
   Cleaner, more reliable PID retrieval without string parsing.
   
   ### Tests
   
   - `sbt "multi-node-testkit/compile"` — passed
   
   ### References
   
   Refs #3136


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


Re: [PR] refactor: use ProcessHandle.current().pid() instead of RuntimeMXBean hack [pekko]

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin merged PR #3152:
URL: https://github.com/apache/pekko/pull/3152


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org