backend/x64: Fix PerfMapRegister usages.

Both the far code and fast_dispatch_table_lookup were missing.
This commit is contained in:
Markus Wick 2021-04-01 20:35:38 +02:00
parent d0372aebaf
commit b2acdec8cb
5 changed files with 19 additions and 4 deletions

View file

@ -47,6 +47,11 @@ void OpenFile() {
namespace detail {
void PerfMapRegister(const void* start, const void* end, std::string_view friendly_name) {
if (start == end) {
// Nothing to register
return;
}
std::lock_guard guard{mutex};
if (!file) {