RFR (S): 8012086: The object count event should only send events for instances occupying more than 0.5% of the heap

Erik Helin erik.helin at oracle.com
Tue May 7 12:58:46 UTC 2013


Hi Bengt,

thanks for the review!

On 05/07/2013 11:42 AM, Bengt Rutisson wrote:
>
> Hi Erik,
>
> Looks good.
>
> Two minor nits:
>
> Could we make 0.05 into a flag or at least a declared constant?

Good suggestion, I've turned into a flag: ObjectCountCutOffPercent.

On 05/07/2013 11:42 AM, Bengt Rutisson wrote:
> Could we rename _used_heap_in_words to something like
> _total_size_in_words or _base_size_in_words since it is not really the
> used count for the heap?

Agree, I renamed it to _total_size_in_words.

Please see new webrev at:
http://cr.openjdk.java.net/~ehelin/8012086/webrev.01/

Thanks,
Erik

> Thanks,
> Bengt
>
> On 5/7/13 10:14 AM, Erik Helin wrote:
>> Hi all,
>>
>> this change makes sure that we only send the trace event
>> vm/gc/detailed/object_count_after_gc if the total size of all the
>> instances of a class occupies more than 0.5% of the used heap.
>>
>> Webrev:
>> http://cr.openjdk.java.net/~ehelin/8012086/webrev.00/
>>
>> Testing:
>> JPRT
>>
>> Thanks,
>> Erik
>
>




More information about the hotspot-gc-dev mailing list