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

Incorrect tmp register passed to MacroAssembler::load_mirror()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b15

      Backports

        Description

        On x86, MacroAssembler::load_mirror() defaults to using rscratch2 as tmp register, unless something else is specified. In TemplateInterpreterGenerator::generate_native_entry() we call load_mirror(), but the rscratch2 register is already in use in this context, which obviously leads to problems. This is not a performance critical path, so we should just pass noreg as the tmp register.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                pliden Per Liden
                Reporter:
                pliden Per Liden
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: