Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8144885

agent/src/os/linux/libproc.h needs to support Linux/SPARC builds

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u60, 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Subcomponent:
      svc
    • Resolved In Build:
      b103
    • CPU:
      sparc
    • OS:
      linux

      Backports

        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

          Issue Links

            Activity

            Hide
            gthornbr Gerald Thornbrugh added a comment -
            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
            Show
            gthornbr Gerald Thornbrugh added a comment - 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
            Hide
            mikael Mikael Vidstedt added a comment -
            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.
            Show
            mikael Mikael Vidstedt added a comment - 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.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/91a678ddc988
            User: mikael
            Date: 2015-12-12 01:02:55 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/91a678ddc988 User: mikael Date: 2015-12-12 01:02:55 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/91a678ddc988
            User: lana
            Date: 2016-01-27 21:42:23 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/91a678ddc988 User: lana Date: 2016-01-27 21:42:23 +0000

              People

              • Assignee:
                mikael Mikael Vidstedt
                Reporter:
                gthornbr Gerald Thornbrugh
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: