Duplicate :
|
|
Relates :
|
|
Relates :
|
Currently C2 generares call to the arraycopy stub for all objects even for one with no non-static fields in inline_native_clone(). It also prevents EA optimization for a new object. Generate fields/elements copies (load -> store) for small objects with exact klass (number and type of fields are known).