Code Monkey home page Code Monkey logo

Comments (3)

AndyAyersMS avatar AndyAyersMS commented on September 14, 2024

@swaroop-sridhar can you take this one? Make sure we coordinate and get this into test scripts and automation.

from llilc.

swaroop-sridhar avatar swaroop-sridhar commented on September 14, 2024

To verify that Conservative GC works for LLILC Jitted code, I ran a test code that allocates a lot of memory and calls GC.Collect() continuously in a loop.

I checked that

  1. The memory allocation and GC.Collect() methods are JITted by LLILCJit.
  2. If Conservative GC is not enabled, the CoreCLR crashes trying to walk the stack, as expected
  3. If Conservative GC is enabled, the program runs to completion.
  4. TaskMgr shows several rounds of allocation and collection.

I think this is sufficient evidence that Conservative GC is working on LLILC Jit, and we should enable it in the testing framework.

If using a Debug build of CoreCLR, I got some Assert() failures in CoreCLR. These failures did not abort execution – the program still ran to completion.
At least some of the failures seem to occur because LLILC run leaks lot more memory than the CoreCLR runtime likes to tolerate. I'll open a separate work item for this and investigate.

from llilc.

swaroop-sridhar avatar swaroop-sridhar commented on September 14, 2024

ConservativeGC mode is enabled in the testing framework, so this task is now complete.

from llilc.

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.