How to turn GCStress on in Windows 7?

后端 未结 1 1806
一整个雨季
一整个雨季 2021-01-02 12:59

I am debugging a GC heap corruption and came to the step where I want to try running the program under WinDbg + PageHeap + AppVerifier + GCStress.

I found in the art

相关标签:
1条回答
  • 2021-01-02 13:16

    I searched GCStress on Koders. It turned out the best way to understand it is by looking at .NET's source code:

    enum  GCStressFlags {
        GCSTRESS_NONE               = 0,
        GCSTRESS_ALLOC              = 1,    // GC on all allocations and 'easy' places
        GCSTRESS_TRANSITION         = 2,    // GC on transitions to preemtive GC
        GCSTRESS_INSTR_JIT          = 4,    // GC on every allowable JITed instruction
        GCSTRESS_INSTR_NGEN         = 8,    // GC on every allowable NGEN instruction
        GCSTRESS_UNIQUE             = 16,   // GC only on a unique stack trace
    };
    
    0 讨论(0)
提交回复
热议问题