Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why does java.lang.Object.hashCode takes half of my CPU time?

807580Jun 26 2010 — edited Jun 27 2010
Hi,
I have been benchmarked my multihreaded program using
-agentlib:hprof=cpu=samples
and was surprised to find the following line:
rank   self  accum   count trace method
   1 52.88% 52.88%    8486 300050 java.lang.Object.hashCode
I never explicitly call hashCode() in my program. What can be the reason for this?

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 25 2010
Added on Jun 26 2010
8 comments
294 views