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

Windows call_stub unnecessarily saves xmm16-31 when UseAVX>=3

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • 22
    • hotspot
    • b18
    • x86_64
    • windows

    Description

      Call_stub is used when calling from C code into Java. It is supposed to implement the platform ABI.

      Windows ABI requires the callee to save RBX, RBP, RDI, RSI, RSP, R12, R13, R14, R15, and XMM6-XMM15. We are saving all these, and save/restore xmm16-31 in addition to that. This is most likely unnecessary.

      https://learn.microsoft.com/en-us/cpp/build/x64-calling-convention?view=msvc-170#callercallee-saved-registers

      Attachments

        Issue Links

          Activity

            People

              djelinski Daniel Jelinski
              djelinski Daniel Jelinski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: