You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MERGE #5824@MikeHolman] surface oop jit on windows builds of chakracore
Merge pull request #5824 from MikeHolman:coreoopjit
Resolves#5793
To use this, you will need to create a process to use as the JIT process and in it do the following:
````
UUID connectionId;
UuidCreate(&connectionId);
void* securityDescriptor = nullptr; // initialize security descriptor (only applicable on win8+)
void* alpcSecurityDescriptor = nullptr; // initialize alpc security descriptor
JsInitializeJITServer(connectionId, securityDescriptor, alpcSecurityDescriptor);
````
You will need to pass the `connectionId` and a process handle of the JIT process to your JS runtime process, and call the following:
````
void* securityDescriptor = nullptr; // initialize security descriptor (only applicable on win8+)
JsConnectJITProcess(jitProcessHandle, connectionId, securityDescriptor)
````
Notes:
`JsConnectJITProcess` should be called before executing any script, and should only be called once per JS runtime process.
The host should ensure that the JS runtime process does not hold any handles to the JIT process once script execution begins.
The host must enable ACG on the JS runtime process in order to get a security benefit from out-of-process JIT.
You can connect any number of JS runtime processes to a single JIT process.
0 commit comments