1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-07-03 15:22:43 -04:00

Compare commits

...

4 Commits

Author SHA1 Message Date
xmrig b9dd5e3eae Merge pull request #3450 from SChernykh/dev
Fix RandomX crash when compiled with fortify_source
2024-03-21 04:09:05 +07:00
SChernykh 032c28d50a Merge remote-tracking branch 'upstream/dev' into dev 2024-03-20 21:24:58 +01:00
SChernykh f6c50b5393 Fix RandomX crash when compiled with fortify_source 2024-03-20 21:24:02 +01:00
SChernykh e65e283aac Merge remote-tracking branch 'upstream/dev' into dev 2024-03-20 21:22:11 +01:00
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1078,6 +1078,6 @@ void JitCompilerA64::h_NOP(Instruction& instr, uint32_t& codePos)
{ {
} }
InstructionGeneratorA64 JitCompilerA64::engine[256] = {}; InstructionGeneratorA64 JitCompilerA64::engine[257] = {};
} }
+1 -1
View File
@@ -74,7 +74,7 @@ namespace randomx {
void enableWriting() const; void enableWriting() const;
void enableExecution() const; void enableExecution() const;
static InstructionGeneratorA64 engine[256]; static InstructionGeneratorA64 engine[257];
private: private:
const bool hugePages; const bool hugePages;
+1 -1
View File
@@ -1443,6 +1443,6 @@ namespace randomx {
emitByte(0x90, code, codePos); emitByte(0x90, code, codePos);
} }
alignas(64) InstructionGeneratorX86 JitCompilerX86::engine[256] = {}; alignas(64) InstructionGeneratorX86 JitCompilerX86::engine[257] = {};
} }
+1 -1
View File
@@ -81,7 +81,7 @@ namespace randomx {
void enableWriting() const; void enableWriting() const;
void enableExecution() const; void enableExecution() const;
alignas(64) static InstructionGeneratorX86 engine[256]; alignas(64) static InstructionGeneratorX86 engine[257];
private: private:
int registerUsage[RegistersCount] = {}; int registerUsage[RegistersCount] = {};