1 Reply Latest reply: Aug 17, 2009 4:36 AM by 807557 RSS

    RTS 2.1 Heap

    807557
      Hi,

      is the heap memory in RTS 2.1 the same as in J2SE? Or was there anything changed, maybe to make the allocation times more predictable?

      Thanks,
      Gordon
        • 1. Re: RTS 2.1 Heap
          807557
          JavaRTS comes with a new Real-Time Garbage Collector:
          http://java.sun.com/javase/technologies/realtime/reference/doc_2.1/release/JavaRTSGarbageCollection.html

          Its focus is to reduce the huge GC pause times. The targeted "pause" times are in the hundreds of microseconds .

          Note that, for performance reasons, we have kept a fast allocation path in the compiled code (using Thread Local Buffers).
          If you allocate big objects or when the Thread Local Buffer overflows, the allocation is a slower (but the worst case execution
          time is still bounded if the heap is not exhausted).

          Thus, the execution time of each "new" call may vary a bit. However, after a few new() call, the total execution time jitter
          is negligible.

          Bertrand Delsart.