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

JDI/JDB tests failures on linux-amd64/windows-amd64 platform

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 6
    • infrastructure
    • None
    • b11
    • generic
    • generic

        There are large number of jdi/jdb failures on linux-amd64/windows-amd64
        platforms. Jim reported in email with following problem.


        The problem is this code added to the JDI SunCommandLineLauncher:

        sccsdiff -r 1.31 -r 1.32 SCCS/s.SunCommandLineLauncher.java

        ------- SunCommandLineLauncher.java -------
        183c183
        < * 64-bit executables are stored under $JAVA_HOME/bin/sparcv9
        ---

        >> * 64-bit executables are stored under $JAVA_HOME/bin/os_arch

        186c186,187
        < if ("sparcv9".equals(System.getProperty("os.arch"))) {
        ---

        >> String os_arch = System.getProperty("os.arch");
        >> if ("sparcv9".equals(os_arch) || "amd64".equals(os_arch)) {

        188,189c189
        < System.getProperty("os.arch") + File.separator +
        < exe;
        ---

        >> os_arch + File.separator + exe;



        This causes the path jre/bin/amd64/java to be used for both
        solaris and linux:

                        /*
                         * A wrinkle in the environment:
                         * 64-bit executables are stored under $JAVA_HOME/bin/os_arch
                         * 32-bit executables are stored under $JAVA_HOME/bin
                         */
                        String os_arch = System.getProperty("os.arch");
                        if ("sparcv9".equals(os_arch) || "amd64".equals(os_arch)) {
                            exePath = home + File.separator + "bin" + File.separator +
                                os_arch + File.separator + exe;
                        } else {
                            exePath = home + File.separator + "bin" + File.separator + exe;
                        }

        It should only be used for solaris.


        Looks like Vijay did it:


        /net/jdk.sfbay/export/disk7/jdk1.6.0/j2se/src/share/classes/com/sun/tools/jdi:149 sccs prt SunCommandLineLauncher.java

        SCCS/s.SunCommandLineLauncher.java:

        D 1.32 04/10/26 17:54:07 vijayj 38 37 00004/00004/00229
        Fixed 6184708 Enable motif21 build for solaris-amd64.
        ###@###.### 11/1/04 19:55 GMT

              vjayaramsunw Vijayan Jayaraman (Inactive)
              fhsusunw Francis Hsu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: