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

Wrong cast in metadata_at_put

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b110
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        The _LP64 variant of typeArrayOopDesc::metadata_at_put casts a pointer to a long. Win64 is really _LLP64 rather than _LP64 (though we use the latter), so on that platform the cast unexpectedly discards the high bits of the address.

        Fortunately, there are presently no uses of this function.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kbarrett Kim Barrett
                  Reporter:
                  kbarrett Kim Barrett
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: