Giter Club home page Giter Club logo

Comments (1)

leculver avatar leculver commented on August 16, 2024

Sorry I missed this issue. Feel free to @ me if I don't respond in a timely fashion.

This is expected. There are a few things going on here:

  1. There can be legitimately dead objects on the heap. They will be collected at the next GC.
  2. Some "objects" reported by runtime.Heap.EnumerateObjects() aren't "real" objects, but instead represent free space on the heap. See ClrObject.IsFree.
  3. Some roots may be held onto by stack references which cannot be walked in a crash dump. The CLR GC stackwalker can only walk GC roots on the stack at "Safepoints". There's no guarantee that when a crash dump is taken that we actually were at a GC safepoint for all threads. (Usually it's fairly rare for important objects to be missed this way, but it definitely happens a lot.)
  4. ClrMD may be missing roots, which would be a bug. However, I cannot look into it or make progress without a crash dump or repro to look into it.

As for the last case, ClrMD attempts to replicate the algorithm that the CLR GC uses to find and mark roots...but at times changes to the GC can result in ClrMD's algorithm getting out of sync and missing roots. The only way to fix those cases is for me to have a repro of what's going on.

from clrmd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.