mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-10 09:02:45 -05:00
Reduce JIT memory for ARM.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user