Skip to content

Commit 258a49d

Browse files
committed
In JavaScriptEngineSwitcher.ChakraCore now during calling of the CollectGarbage method is no longer performed blocking
1 parent faeb5f0 commit 258a49d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

NuGet/JavaScriptEngineSwitcher.ChakraCore/JavaScriptEngineSwitcher.ChakraCore.nuspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ This package does not contain the native implementations of ChakraCore. Therefor
2323
<releaseNotes>1. ChakraCore was updated to version 1.8.1;
2424
2. JavaScriptEngineSwitcher.ChakraCore.Native.debian-x64 package has been replaced by the JavaScriptEngineSwitcher.ChakraCore.Native.linux-x64 package;
2525
3. Prevented an occurrence of the “Host may not have set any promise continuation callback. Promises may not be executed.” error;
26-
4. In configuration settings of the ChakraCore JS engine was added two new properties - `MemoryLimit` and `DisableFatalOnOOM` (default `false`).</releaseNotes>
26+
4. In configuration settings of the ChakraCore JS engine was added two new properties - `MemoryLimit` and `DisableFatalOnOOM` (default `false`);
27+
5. Now during calling of the `CollectGarbage` method is no longer performed blocking.</releaseNotes>
2728
<copyright>Copyright (c) 2013-2018 Andrey Taritsyn - http://www.taritsyn.ru</copyright>
2829
<language>en-US</language>
2930
<tags>JavaScriptEngineSwitcher JavaScript ECMAScript ChakraCore</tags>

NuGet/JavaScriptEngineSwitcher.ChakraCore/readme.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
3. Prevented an occurrence of the “Host may not have set any promise
3737
continuation callback. Promises may not be executed.” error;
3838
4. In configuration settings of the ChakraCore JS engine was added two new
39-
properties - `MemoryLimit` and `DisableFatalOnOOM` (default `false`).
39+
properties - `MemoryLimit` and `DisableFatalOnOOM` (default `false`);
40+
5. Now during calling of the `CollectGarbage` method is no longer performed
41+
blocking.
4042

4143
=============
4244
DOCUMENTATION

src/JavaScriptEngineSwitcher.ChakraCore/ChakraCoreJsEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ protected override void InnerEmbedHostType(string itemName, Type type)
12341234

12351235
protected override void InnerCollectGarbage()
12361236
{
1237-
_dispatcher.Invoke(() => _jsRuntime.CollectGarbage());
1237+
_jsRuntime.CollectGarbage();
12381238
}
12391239

12401240
#endregion

0 commit comments

Comments
 (0)