CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2002
    Location
    Mumbai, Maharashtra, India
    Posts
    13

    Question Concurrent GC Setting

    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))
    {
    }

  2. #2
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    265
    Not really an answer, but I believe any hints about concurrent GC will be ignored on a single CPU machine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured