GC interface update

Kirk Pepperdine kirk.pepperdine at gmail.com
Thu Apr 20 12:04:43 UTC 2017


> On Apr 20, 2017, at 12:05 PM, Aleksey Shipilev <shade at redhat.com> wrote:
> 
> On 04/20/2017 09:37 AM, Kirk Pepperdine wrote:
>>> Good stuff. However, one thing I'm not quite comfortable with is the
>>> introduction of the GC class (and its sub classes). I don't quite see the
>>> purpose of this interface split-up between GC and CollectedHeap. I view
>>> CollectedHeap as _the_ interface (but yes, it needs some love), and as a
>>> result I think the the functions you've exposed in the GC class actually
>>> belongs in CollectedHeap.
>> 
>> I thought the name CollectedHeap implied the state of the heap after the
>> collector has completed. What is the intent of CollectedHeap?
> 
> No, CollectedHeap is the actual current GC interface. This is the entry point to
> GC as far as the rest of runtime is concerned, see e.g. CollectedHeap*
> Universe::create_heap(), etc. Implementing CollectedHeap, CollectorPolicy, and
> BarrierSet are the bare minimum required for GC implementation today. [1]

Hi Aleksey,

Thanks for the explanation but I think my comment still stands.

Kind regards,
Kirk



More information about the hotspot-gc-dev mailing list