1 Reply Latest reply: Oct 17, 2010 12:46 PM by jschellSomeoneStoleMyAlias RSS

    Analysing HOTSPOT Source code

    805964
      Hi,
      I am a Student @ BITS, Pilani. I am working with HOTSPOT JVM as my project
      work.My main concern is to understand the source code of how to allocate java Objects in memory(HEAP) and change that and work with Parallel Scavenging
      but there are so many files that i am unable to understand the source code
      How should i start and is there any documentation about the source code?

      I also want to know which files are mainly responsible for java heap management and how to analyze them.

      My Email id is-> [deleted by moderator]

      Thanks and Regards
      Devendra K.

      Edited by: EJP on 17/10/2010 11:22
        • 1. Re: Analysing HOTSPOT Source code
          jschellSomeoneStoleMyAlias
          user11433837 wrote:
          but there are so many files that i am unable to understand the source code
          There is documentation about the functionality for hotspot and garbage collection. The former is often used to refer to just in time compilation rather than simply in terms of the VM and the garbage collector.

          That documentation describes what it does not how it does it.

          Since the VM is complicated there is a lot of source code.
          How should i start
          Read the source code.
          Run it in a debugger and step through it with different small examples.
          Read up on articles about diferent garbage collection strategies.
          and is there any documentation about the source code?
          No.

          The alternative to the above is to start with something less ambitious. For example find several garbage collection algorithms and attempt to implement them yourself.