javax GC API

Jon Masamitsu jon.masamitsu at oracle.com
Fri Apr 19 17:02:57 UTC 2013


On 4/19/2013 1:06 AM, Suminda Dharmasena wrote:
> Hi,
>
> Any thoughts plans to add API accessibility to the GC subsystems and the
> ability to add our own GC.

I don't recall being in any meeting where this was discussed.  Do
you mean providing control to the applications to start some phase
of GC?  Could you give an example?

>
> Looking for the comments from the community and Oracle.
>
> In addition I like to propose introducing the following annotations for
> more predictable GC overheads:
>
>     - GCAtBlockEnd

What does this mean to you?

Jon

>     - GCAtBlockExit - for loops the GC happens when the
>     - GCAtLastReference
>     - GCAtEndOfScope
>     - GCOnAssignment
>     - GCOnReturn
>     - GCOnGCOfContainingObject - GC on GC of aggregate / composing object
>     - GCOnStatementCompletion - GC parameters and return value (if not
>     assigned) of a call when the function returns. Need to support statement
>     level annotations.
>     - GCOnLastResort - Only GC at last resort before outofmemory exception -
>     class level
>     - ExcludeFinalising - prevent finalizers running on the object - class
>     level
>     - GCUsingCurrentThread
>     - GCUsingDefaultThread
>     - GCUsingNewThread(Priority = n)
>
> To do this annotations need to be extended to local variables and for some
> application at the statement / block level.
>
> At each point the objects pointed by the handle are GCed if there is
> a possibility (reference count becomes 0). If a reference to an object is
> specified to be
>
> Suminda
> --
> Suminda Sirinath Salpitikorala Dharmasena, B.Sc. Comp. & I.S. (Hon.) Lond.,
> P.G.Dip. Ind. Maths. J'Pura, MIEEE, MACM, CEO Sakrīō! ▣ *Address*: 6G • 1st
> Lane • Pagoda Road • Nugegoda 10250 • Sri Lanka. ▣ *Tele*: +94-(0)11-5
> 864614 / 5 875614 / 2 825908 ▣ *Web*: http://www.sakrio.com>
> This email is subjected to the email Terms of Use and Disclaimer:
> http://www.sakrio.com/email-legal. Please read this first.
> --
>




More information about the hotspot-gc-dev mailing list