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

Use thread register C2MacroAssembler::fast_lock()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 21
    • hotspot
    • x86
    • generic

      In the 32-bit section of C2MacroAssembelr::fast_lock() we first CAS a stack-pointer and after this has been successful, fetch the current thread and store that into the stack-lock. With JDK-8291555 we can simply use the thread-register that's passed into fast_lock() and can avoid the intermediate store.
      Also, fix the clearing of tmp register to use xorl, as the comment says.

            rkennke Roman Kennke
            rkennke Roman Kennke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: