Skip to content

Commit 1ce54b2

Browse files
committed
In JavaScriptEngineSwitcher.ChakraCore during calling of the CollectGarbage method is no longer performed blocking
1 parent e006941 commit 1ce54b2

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/JavaScriptEngineSwitcher.ChakraCore/ChakraCoreJsEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ protected override void InnerInterrupt()
12751275

12761276
protected override void InnerCollectGarbage()
12771277
{
1278-
_dispatcher.Invoke(() => _jsRuntime.CollectGarbage());
1278+
_jsRuntime.CollectGarbage();
12791279
}
12801280

12811281
#region IJsEngine implementation

src/JavaScriptEngineSwitcher.ChakraCore/JavaScriptEngineSwitcher.ChakraCore.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ This package does not contain the native implementations of ChakraCore. Therefor
2222
* JavaScriptEngineSwitcher.ChakraCore.Native.osx-x64</Description>
2323
<PackageIconUrl>https://raw.githubusercontent.com/Taritsyn/JavaScriptEngineSwitcher/master/Icons/JavaScriptEngineSwitcher_ChakraCore_Logo128x128.png</PackageIconUrl>
2424
<PackageTags>JavaScriptEngineSwitcher;JavaScript;ECMAScript;ChakraCore</PackageTags>
25-
<PackageReleaseNotes>In configuration settings of the ChakraCore JS engine was added one new property - `MemoryLimit`.</PackageReleaseNotes>
25+
<PackageReleaseNotes>1. In configuration settings of the ChakraCore JS engine was added one new property - `MemoryLimit`;
26+
2. Now during calling of the `CollectGarbage` method is no longer performed blocking.</PackageReleaseNotes>
2627
</PropertyGroup>
2728

2829
<Import Project="../../build/common.props" />

src/JavaScriptEngineSwitcher.ChakraCore/readme.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@
3030
=============
3131
RELEASE NOTES
3232
=============
33-
In configuration settings of the ChakraCore JS engine was added one new
34-
property - `MemoryLimit`.
33+
1. In configuration settings of the ChakraCore JS engine was added one new
34+
property - `MemoryLimit`;
35+
2. Now during calling of the `CollectGarbage` method is no longer performed
36+
blocking.
3537

3638
=============
3739
DOCUMENTATION

0 commit comments

Comments
 (0)