forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Java 9+ Process.pid() to get pid
This avoids using reflection to access Process internals on JDK versions 9 and higher, reducing our our requirements for opening core JDK classes. In JRuby 10, we will remove all the reflective logic since that release targets at least Java 17. This may help fix jruby#7515 by providing access to a real pid on Java 9+ regardless of reflection access.
- Loading branch information
Showing
2 changed files
with
78 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters