Meghansh
June 22nd, 2002, 05:33 AM
While compiling a code thru C# compiler, is there any tag in its config file where I can specify that the GC thread should evoke concurrently or non concurrently.
This can be specified in the CLR host, e.g. our shell executable with the function CorBindToRuntimeEx.
A sample code is like this.
/****************/
LPWSTR pszVer = L"v1.0.2121";
LPWSTR pszFlavor = L"wks";
ICorRuntimeHost *pHost = NULL;
hr = CorBindToRuntimeEx(
//version
pszVer,
// svr or wks
pszFlavor,
//domain-neutral"ness" and gc settings
STARTUP_LOADER_OPTIMIZATION_MULTI_DOMAIN_HOST |
STARTUP_CONCURRENT_GC,
CLSID_CorRuntimeHost,
IID_ICorRuntimeHost,
(void **)&pHost);
if (SUCCEEDED(hr))
{
}
This can be specified in the CLR host, e.g. our shell executable with the function CorBindToRuntimeEx.
A sample code is like this.
/****************/
LPWSTR pszVer = L"v1.0.2121";
LPWSTR pszFlavor = L"wks";
ICorRuntimeHost *pHost = NULL;
hr = CorBindToRuntimeEx(
//version
pszVer,
// svr or wks
pszFlavor,
//domain-neutral"ness" and gc settings
STARTUP_LOADER_OPTIMIZATION_MULTI_DOMAIN_HOST |
STARTUP_CONCURRENT_GC,
CLSID_CorRuntimeHost,
IID_ICorRuntimeHost,
(void **)&pHost);
if (SUCCEEDED(hr))
{
}