RFR(M): 6700100: optimize inline_native_clone() for small objects with exact klass
aleksey.shipilev at oracle.com
Tue Oct 28 09:53:40 UTC 2014
On 10/28/2014 12:18 PM, Roland Westrelin wrote:
> Anyone else for this review?
>> On Oct 23, 2014, at 1:50 PM, Roland Westrelin <roland.westrelin at oracle.com> wrote:
>> Here is a new webrev that takes your comments into account:
No red flags from me.
A minor pet peeve about the code style in Hotspot, which adds up to
accidental code complexity: pro-actively blowing up more methods than
required to solve the task at hand.
This change provides the example: both compute_injected_fields() and
has_injected_fields() do dances around _has_injected_fields value. It
would seem more readable to just have has_injected_fields() to lazily
compute the value on demand, inlining both compute_injected_fields() and
compute_injected_fields_helper(). That would spare two additional
methods, and make the code generally more readable, and maintainable.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the hotspot-compiler-dev