Skip to content

Instantly share code, notes, and snippets.

@vyazelenko
Last active December 26, 2015 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vyazelenko/7223803 to your computer and use it in GitHub Desktop.
Save vyazelenko/7223803 to your computer and use it in GitHub Desktop.
Results of running TestConstructor with -XX:+PrintCompilation
java -XX:+PrintCompilation com.vyazelenko.blog.copyobject.TestConstructor
59 1 java.lang.String::hashCode (55 bytes)
61 2 java.lang.String::indexOf (70 bytes)
70 3 sun.nio.cs.UTF_8$Encoder::encode (361 bytes)
77 4 java.lang.Object::<init> (1 bytes)
80 5 java.util.ArrayList::add (29 bytes)
80 6 java.util.ArrayList::ensureCapacityInternal (23 bytes)
81 7 java.util.ArrayList::ensureExplicitCapacity (26 bytes)
81 8 com.vyazelenko.blog.copyobject.TestConstructor::callCopy (7 bytes)
81 9 com.vyazelenko.blog.copyobject.primitives.constructor.ConstructorCopy::copy (9 bytes)
83 10 com.vyazelenko.blog.copyobject.primitives.constructor.ConstructorCopy::<init> (6 bytes)
83 11 com.vyazelenko.blog.copyobject.primitives.BaseClass::<init> (118 bytes)
83 12 com.vyazelenko.blog.copyobject.primitives.Root::<init> (61 bytes)
83 13 % com.vyazelenko.blog.copyobject.TestConstructor::doCopy @ 38 (92 bytes)
113 14 com.vyazelenko.blog.copyobject.TestConstructor::doCopy (92 bytes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment