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

Optimize safepoint poll encoding with smaller poll data offset

XMLWordPrintable

    • b20

      Current safepoint poll data reside all way down in JavaThread, which makes the encoding for safepoint polls not as efficient as it could be, especially on x86. We can pull it closer to the rest of nmethod/gc-related hot fields.

      Current encoding:
       0x...6d17: mov 0x450(%r15),%rax
       0x...6d1e: test %eax,(%rax)
       0x...6d20: (+9 bytes)

      Encoding with lower offset:
       0x...1018: mov 0x30(%r15),%rax
       0x...101c: test %eax,(%rax)
       0x...101e: (+6 bytes)
       

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: