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

BasicType and BasicTypeSize should refer to HotSpot values

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b36

      Description

      http://mail.openjdk.java.net/pipermail/serviceability-dev/2017-October/021965.html

      Enum values in BasicType and BasicTypeSize are declared as const values. However, it makes error prone when existing enum values change.
      They should refer to HotSpot values via VMStructs.

      I attach suggested fix to this ticket.
      This patch works fine on hotspot/jtreg/serviceability/sa jtreg tests.

        Attachments

          Activity

            People

            • Assignee:
              ysuenaga Yasumasa Suenaga
              Reporter:
              ysuenaga Yasumasa Suenaga
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: