3.0.0 jit also requires own process handle

This commit is contained in:
plutoo 2018-01-21 17:21:07 +01:00
parent cd881bbc0e
commit 6b4b693842

View File

@ -11,7 +11,8 @@ Result jitCreate(Jit* j, size_t size)
type = JitType_JitMemory; type = JitType_JitMemory;
} }
// Fall back to MapProcessCodeMemory if available. // Fall back to MapProcessCodeMemory if available.
else if (envIsSyscallHinted(0x73) && envIsSyscallHinted(0x77) && envIsSyscallHinted(0x78)) { else if (envIsSyscallHinted(0x73) && envIsSyscallHinted(0x77) && envIsSyscallHinted(0x78)
&& (envGetOwnProcessHandle() != INVALID_HANDLE)) {
type = JitType_CodeMemory; type = JitType_CodeMemory;
} }
else { else {