forked from microsoft/ClearScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 7.3.5: Added support for script object identity comparison (G…
…itHub Issue microsoft#422); overhauled scriptable enumerators to fix GitHub Issue microsoft#423; eliminated default V8 platform to fix process exit deadlock on Windows 7 (GitHub Issue microsoft#424); addressed performance regression reported in GitHub Issue microsoft#433; added a pair of ToRestrictedHostObject overloads (GitHub Issue microsoft#437); fixed a specific property accessor scriptability scenario (GitHub Issue microsoft#439); updated API documentation. Tested with V8 10.7.193.22.
- Loading branch information
1 parent
02b7203
commit 5fe5403
Showing
699 changed files
with
3,174 additions
and
972 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using Microsoft.ClearScript.Util; | ||
|
||
namespace Microsoft.ClearScript | ||
{ | ||
internal static partial class CustomAttributes | ||
{ | ||
private static ConditionalWeakTable<ICustomAttributeProvider, CacheEntry> cache = new ConditionalWeakTable<ICustomAttributeProvider, CacheEntry>(); | ||
|
||
public static void ClearCache() | ||
{ | ||
keyCache.Values.ForEach(key => attributeCache.Remove(key)); | ||
lock (cacheLock) | ||
{ | ||
cache = new ConditionalWeakTable<ICustomAttributeProvider, CacheEntry>(); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace Microsoft.ClearScript | ||
{ | ||
internal static partial class CustomAttributes | ||
{ | ||
private static readonly ConditionalWeakTable<ICustomAttributeProvider, CacheEntry> cache = new ConditionalWeakTable<ICustomAttributeProvider, CacheEntry>(); | ||
|
||
public static void ClearCache() | ||
{ | ||
attributeCache.Clear(); | ||
lock (cacheLock) | ||
{ | ||
cache.Clear(); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.