(Republishing, or using this info in a commercial product/website, is prohibited without permission. All other uses are permitted. If in doubt, please ask.)

SQLCLR_APPDOMAIN

(Back to main page…)

Description:

Exactly as the description below states.

(Books Online description: “Occurs while CLR waits for an application domain to complete startup.”)

Questions/comments on this wait type? Click here to send Paul an email, especially if you have any information to add to this topic.

Added in SQL Server version:

Pre-2005/2005

Removed in SQL Server version:

N/A

Extended Events wait_type value:

The map_key value in sys.dm_xe_map_values is 223 in 2008 and 2008 R2, 230 in 2012, and 237 in 2014 RTM. After 2014 RTM, you must check the DMV to get the latest value as some map_key values have changed in later builds.

Other information:

I have not seen this wait type be a noticeable contention point.

Known occurrences in SQL Server (list number matches call stack list):

  1. Waiting for an application domain to load (in this case, while parsing/algebrizing a query that involves a user-defined function)

And other similar call stacks.

Abbreviated call stacks (list number matches known occurrences list):

  1. SOS_Task::PostWait+9e
    EventInternal<SuspendQueueSLock>::Wait+25e
    SOS_RecursiveMutex::Wait+aa
    CAppDomain::WaitForInitComplete+4b
    CAppDomainManager::GetAppDomain+20a
    CCLRHost::GetAppDomain+9b
    CAssemblyMetaInfo::GetAppDomainForVerification+1eb
    CAssemblyMetaInfo::CreateClrInterfaces+1da
    CAssemblyMetaInfo::InitClrInterfaces+7c
    CAssemblyMetaInfo::LoadAssemblyFromDatabase+14f
    CAssemblyMetaInfo::LoadAssemblyFromDatabase+b5
    FGetUdtFunctionInfo+24c
    BindUdx+18e
    CScaOp_UdtFunction::FBindAttempt+42b
    CBindEnv::PexprBindMulti+394
    CScaOp_UdfMulti::PexprPreBindTransform+d9
    CScaOpArg::BindScalarTree+c0
    CScaOpArg::BindTree+4d
    CRelOp_TableExprQuery::BindTree+475
    COptExpr::BindTree+85
    CRelOp_Query::FAlgebrizeQuery+438
    CProchdr::FNormalizeStep+163d