[riscv-port] RFR: 8277391: riscv: implement tls function MacroAssembler::get_thread() by using tls.gd [v2]

zhengxiaolinX duke at openjdk.java.net
Mon Nov 22 02:46:03 UTC 2021

> Hi team,
> This patch fixes the unimplemented assembly version of `__ get_thread()`, bringing some performance improvement by directly using the x4 register to refer to the variable `Thread::_thr_current`. Tested tests under hotspot/ and jdk/. [Original patch](https://github.com/riscv-collab/riscv-openjdk/pull/4)
> Thanks,
> Xiaolin

zhengxiaolinX has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains one commit:

  Implement tls function MacroAssembler::get_thread() using tls.gd


Changes: https://git.openjdk.java.net/riscv-port/pull/7/files
 Webrev: https://webrevs.openjdk.java.net/?repo=riscv-port&pr=7&range=01
  Stats: 58 lines in 3 files changed: 45 ins; 9 del; 4 mod
  Patch: https://git.openjdk.java.net/riscv-port/pull/7.diff
  Fetch: git fetch https://git.openjdk.java.net/riscv-port pull/7/head:pull/7

PR: https://git.openjdk.java.net/riscv-port/pull/7

More information about the riscv-port-dev mailing list