riscv-collab / riscv-openjdk

GNU General Public License v2.0
23 stars 11 forks source link

[macroassembler] implement tls function MacroAssembler::get_thread() using tls.ie #4

Closed zhengxiaolinX closed 3 years ago

zhengxiaolinX commented 3 years ago

Hi team,

This patch fixes the unimplemented __ get_thread(), which can bring some performance improvement by directly using the x4 register to refer to the variable Thread::_thr_current. I was wondering if you could take a look at this patch when available.

Thanks, Xiaolin