RFR: 8178836: Improve PtrQueue index abstraction

Mikael Gerdin mikael.gerdin at oracle.com
Fri May 5 11:49:37 UTC 2017


Hi Kim,

On 2017-05-05 07:46, Kim Barrett wrote:
> Still looking for a second review.
>
>> On Apr 22, 2017, at 1:19 PM, Kim Barrett <kim.barrett at oracle.com> wrote:
>>
>>> On Apr 21, 2017, at 7:00 PM, Kim Barrett <kim.barrett at oracle.com> wrote:
>>>> Minor nits:
>>>>
>>>> *) On first scan, "limit" reads as the loop variable, because it is the only
>>>> initialization in init block. Move it out?
>>>>
>>>> 161   for (size_t limit = buffer_size(); i < limit; ++i) {
>>>
>>> OK.
>>
>> Updated webrev:
>> full: http://cr.openjdk.java.net/~kbarrett/8178836/hotspot.01/
>> incr: http://cr.openjdk.java.net/~kbarrett/8178836/hotspot.01.inc/
>
>

Good cleanup. A step in the right direction but I'm still confused by 
mixing of sizes and offsets in both bytes and elements.

Just to get this straight:
PtrQueueSet::buffer_size used to return the byte size of buffers because 
PtrQueueSet::_sz was set to a byte size but now the byte sizes are more 
contained in PtrQueue?

Consider this Reviewed.

/Mikael



More information about the hotspot-gc-dev mailing list