mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-09 06:20:02 +01:00
fx
This commit is contained in:
parent
cb490de31b
commit
ec275e6e26
1 changed files with 0 additions and 3 deletions
|
|
@ -49,14 +49,11 @@ struct CodeBlockInfo {
|
||||||
};
|
};
|
||||||
|
|
||||||
class SigHandler {
|
class SigHandler {
|
||||||
static constexpr std::size_t signal_stack_size = std::max<std::size_t>(SIGSTKSZ, 2 * 1024 * 1024);
|
|
||||||
|
|
||||||
auto FindCodeBlockInfo(u64 offset) noexcept {
|
auto FindCodeBlockInfo(u64 offset) noexcept {
|
||||||
return std::find_if(code_block_infos.begin(), code_block_infos.end(), [&](auto const& e) {
|
return std::find_if(code_block_infos.begin(), code_block_infos.end(), [&](auto const& e) {
|
||||||
return e.first <= offset && e.first + e.second.size > offset;
|
return e.first <= offset && e.first + e.second.size > offset;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ankerl::unordered_dense::map<u64, CodeBlockInfo> code_block_infos;
|
ankerl::unordered_dense::map<u64, CodeBlockInfo> code_block_infos;
|
||||||
std::shared_mutex code_block_infos_mutex;
|
std::shared_mutex code_block_infos_mutex;
|
||||||
struct sigaction old_sa_segv;
|
struct sigaction old_sa_segv;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue