JDK-8231986 : Consolidate parts of the Linux and MacOSX versions of ps_core.c
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: svc-agent
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux,os_x
  • Submitted: 2019-10-08
  • Updated: 2021-08-05
  • Resolved: 2019-10-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14
14 b19Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
These two files have lots of duplication:
http://hg.openjdk.java.net/jdk/jdk/file/5b5de2618756/src/jdk.hotspot.agent/linux/native/libsaproc/ps_core.c
http://hg.openjdk.java.net/jdk/jdk/file/5b5de2618756/src/jdk.hotspot.agent/macosx/native/libsaproc/ps_core.c

Specifically, the code that deals with CDS is almost identical in these two files. The upcoming changes in JDK-8231610 (Relocate the CDS archive if it cannot be mapped to the requested address) would require ps_core.c to be modified, and I don't want to make the same changes twice.

I this RFE, I plan to merge the parts in ps_core.c that's related to CDS. I'll leave the rest in place for now.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/8bc609fcd691 User: iklam Date: 2019-10-10 18:04:23 +0000
10-10-2019

http://cr.openjdk.java.net/~iklam/jdk14/8231986-consolidate-ps-core.v01/
08-10-2019