Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/coreclr/vm/corhost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,13 @@ HRESULT CorHost2::CreateAppDomainWithManager(
sAppPaths));
}

{
// Initialize the InvariantCulture such that it can be safely used when creating
// stack traces under high memory pressure.
GCX_COOP();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
GCX_COOP();

Is GCX_COOP really needed here?

CheckRunClassInitThrowing seems to be MODE_ANY. It may be nice to add it to its contract to be make it explicit.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related nit: GCX_COOP in ResolveVirtualFunctionPointer around CheckRunClassInitThrowing looks unnecessary It can be deleted.

CoreLibBinder::GetClass(CLASS__CULTURE_INFO)->CheckRunClassInitThrowing();
}

#if defined(TARGET_UNIX) && !defined(FEATURE_STATICALLY_LINKED)
if (!g_coreclr_embedded)
{
Expand Down