Skip to content

Commit 8eb54f8

Browse files
committed
Fix awful slip in new allocateJITMemory implementations.
1 parent c914d75 commit 8eb54f8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

build.macos64x64/common/entitlements.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<true/>
99
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
1010
<true/>
11+
<key>com.apple.security.cs.disable-library-validation</key>
12+
<true/>
1113
<key>com.apple.security.device.audio-input</key>
1214
<true/>
1315
<key>com.apple.security.device.microphone</key>

platforms/unix/vm/sqUnixMemory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ allocateJITMemory(usqInt *desiredSize)
419419
#endif
420420

421421
*desiredSize = roundUpToPage(*desiredSize);
422-
result = mmap(hint, desiredSize,
422+
result = mmap(hint, *desiredSize,
423423
PROT_READ | PROT_WRITE | PROT_EXEC,
424424
MAP_FLAGS | MAP_JIT, -1, 0);
425425
if (result == MAP_FAILED) {

platforms/unix/vm/sqUnixSpurMemory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ allocateJITMemory(usqInt *desiredSize)
280280
#endif
281281

282282
*desiredSize = roundUpToPage(*desiredSize);
283-
result = mmap(hint, desiredSize,
283+
result = mmap(hint, *desiredSize,
284284
PROT_READ | PROT_WRITE | PROT_EXEC,
285285
MAP_FLAGS | MAP_JIT, -1, 0);
286286
if (result == MAP_FAILED) {

0 commit comments

Comments
 (0)