Make JIT memory read-only after patching is done
This commit is contained in:
parent
897ff83dcd
commit
31a571dc70
4 changed files with 15 additions and 0 deletions
|
@ -61,6 +61,7 @@ public:
|
|||
static void release(cryptonight_ctx **ctx, size_t count, MemInfo &info);
|
||||
|
||||
static void *allocateExecutableMemory(size_t size);
|
||||
static void protectExecutableMemory(void *p, size_t size);
|
||||
static void flushInstructionCache(void *p, size_t size);
|
||||
|
||||
static inline bool isHugepagesAvailable() { return (m_flags & HugepagesAvailable) != 0; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue