Re: [rvm-research] Understanding GC implementations
Rifat Shahriyar <[email protected]>
| Newsgroups | gmane.comp.java.jikes.rvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, Garbage collectors in Jikes RVM work in phases. There are phases for mutator and collector. There are no explicit calls to invoke mark and sweep phases. For mark sweep collector, marking is done by tracing the heap. Tracing starts from the roots (see STACK_ROOTS and ROOTS phases in SimpleCollector.java) and finishes with a transitive closure (see CLOSURE phase in MSCollector.java). Sweeping is done by walking through the heap and sweep objects that are not marked (see msSpace.release method of RELEASE phase in MS.java). if you want to know how the phases are executed have a look at the processPhaseStack method in Phase.java. Regards - Rifat Australian National University On 30/04/13 6:31 AM, Thai, Richard P wrote: > > I've mentioned before that I was trying my hand at making a garbage > collector and that I wanted a better way towards understanding how > GC's operate in JikesRVM. I've read through how memory allocation > works in JikesRVM, but my understanding of garbage collectors remains > unchanged. Maybe a better approach would be to map a garbage collector > who implementation I know (mark sweep for instance), and understand > where the key phases of its execution are. Would anyone know where I'd > be able to find the explicit calls to invoke the **mark** and > **sweep** phases? > > Best Regards, > > Richard Thai > > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > > > _______________________________________________ > Jikesrvm-researchers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ Jikesrvm-researchers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers