Reduce JIT memory for ARM.

This commit is contained in:
XMRig 2020-12-15 02:52:38 +07:00
parent 4c7d20c8e6
commit 6b331b6945
No known key found for this signature in database
GPG key ID: 446A53638BE94409
4 changed files with 46 additions and 13 deletions

View file

@ -77,12 +77,15 @@ namespace randomx {
static InstructionGeneratorA64 engine[256];
private:
uint32_t reg_changed_offset[8];
uint8_t* code;
const bool hugePages;
uint32_t reg_changed_offset[8]{};
uint8_t* code = nullptr;
uint32_t literalPos;
uint32_t num32bitLiterals = 0;
size_t allocatedSize = 0;
void allocate(size_t size);
static void emit32(uint32_t val, uint8_t* code, uint32_t& codePos)
{
*(uint32_t*)(code + codePos) = val;