Skip to content

Commit b45d0b5

Browse files
committed
xplat: make DynamicProfileStorage::Initialize re-entrant
There is no reason for xplat to have this function be non-reentrant. This also reduces the number of code changes in issue chakra-core#1811 since this change fixes the issue with running ch. v2: use ifdef, since this call is ran on windows.
1 parent 75182f3 commit b45d0b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Runtime/Language/DynamicProfileStorage.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ char16 const * DynamicProfileStorage::GetMessageType()
296296

297297
bool DynamicProfileStorage::Initialize()
298298
{
299+
#ifdef _WIN32
299300
AssertMsg(!initialized, "Initialize called multiple times");
301+
#endif
300302
if (initialized)
301303
{
302304
return true;

0 commit comments

Comments
 (0)