mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-07 04:33:24 +00:00
fx
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user