Skip to content

Instantly share code, notes, and snippets.

@vyazelenko
Created October 29, 2013 22:22
Show Gist options
  • Save vyazelenko/7223731 to your computer and use it in GitHub Desktop.
Save vyazelenko/7223731 to your computer and use it in GitHub Desktop.
Results of running TestClone with -XX:+PrintCompilation
java -XX:+PrintCompilation com.vyazelenko.blog.copyobject.TestClone
59 1 java.lang.String::hashCode (55 bytes)
61 2 java.lang.String::indexOf (70 bytes)
69 3 sun.nio.cs.UTF_8$Encoder::encode (361 bytes)
77 4 java.util.ArrayList::add (29 bytes)
77 5 java.util.ArrayList::ensureCapacityInternal (23 bytes)
77 7 n java.lang.Object::clone (native)
78 6 java.util.ArrayList::ensureExplicitCapacity (26 bytes)
78 8 com.vyazelenko.blog.copyobject.TestClone::callCopy (7 bytes)
78 9 com.vyazelenko.blog.copyobject.primitives.clone.CloneCopy::copy (5 bytes)
79 10 ! com.vyazelenko.blog.copyobject.primitives.clone.CloneCopy::clone (18 bytes)
79 11 % com.vyazelenko.blog.copyobject.TestClone::doCopy @ 38 (92 bytes)
105 12 com.vyazelenko.blog.copyobject.TestClone::doCopy (92 bytes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment