JDK-8144885 : agent/src/os/linux/libproc.h needs to support Linux/SPARC builds
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: 8u60,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: sparc
  • Submitted: 2015-12-07
  • Updated: 2016-04-27
  • Resolved: 2015-12-16
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 8 JDK 9
8u101Fixed 9 b103Fixed
Related Reports
Relates :  
Relates :  
Description
The include file agent/src/os/linux/libproc.h references the include file <sys/ptrace.h>. On Linux/SPARC systems this include file is located at <linux/ptrace.h).  To support Linux/SPARC builds the following code needs to be placed in agent/src/os/linux/libproc.h:

#if defined(sparcv9)
#include <linux/ptrace.h>
#else
#include <sys/ptrace.h>
#endif
Comments
After some discussion on hotspot-runtime-dev (http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2015-December/017028.html ) it was decided that asm/ptrace.h should be included instead.
11-12-2015

The following code needs to be added to agent/src/os/linux/libproc.h to support Linux/SPARC builds: #if defined(sparcv9) #include <linux/ptrace.h> #else #include <sys/ptrace.h> #endif
07-12-2015