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

Outdated comment in MachineDescriptionTwosComplement.isLP64

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P5
    • Resolution: Unresolved
    • Affects Version/s: 19
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None

      Description

      Method {{sun.jvm.hotspot.debugger.MachineDescriptionTwosComplement#isLP64}} has outdated comment:

        // Nearly all of the supported machines are not LP64 */
        public boolean isLP64() {
          return false;
        }

      https://github.com/openjdk/jdk/blob/2c43ecb43fa3c94b69478039f1cd70ed4a577768/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/MachineDescriptionTwosComplement.java#L77

      Nowadays, it's actually inversed: almost all supported machines *are* LP64.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            aturbanov Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: