diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-10-13 18:00:25 -0300 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-10-13 18:00:25 -0300 |
commit | b9a9b83bee124a86501905d0b75def4ccb1cb966 (patch) | |
tree | 8e7a42cb87ec56c2fadf3e75a31b1ead0c22514f /src/core/gdbstub/gdbstub.cpp | |
parent | d291fc1a517d0db07e4b32f5b4ad294c5e93e984 (diff) |
kernel: Implement host thread register methods without locking
Locks on GetCurrentHostThreadID were causing performance issues
according to Visual Studio's profiler. It was consuming twice the time
as arm_interface.Run(). The cost was not in the function itself but in
the lockinig it required.
Reimplement these functions using atomics and static storage instead of
an unordered_map. This is a side effect to avoid locking and using linked
lists for reads.
Replace unordered_map with a linear search.
Diffstat (limited to 'src/core/gdbstub/gdbstub.cpp')
0 files changed, 0 insertions, 0 deletions