Mercurial > hg > truffle
comparison src/share/vm/classfile/altHashing.cpp @ 6725:da91efe96a93
6964458: Reimplement class meta-data storage to use native memory
Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes
Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland
Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author | coleenp |
---|---|
date | Sat, 01 Sep 2012 13:25:18 -0400 |
parents | e9140bf80b4a |
children | 6f817ce50129 |
comparison
equal
deleted
inserted
replaced
6724:36d1d483d5d6 | 6725:da91efe96a93 |
---|---|
31 | 31 |
32 // Get the hash code of the classes mirror if it exists, otherwise just | 32 // Get the hash code of the classes mirror if it exists, otherwise just |
33 // return a random number, which is one of the possible hash code used for | 33 // return a random number, which is one of the possible hash code used for |
34 // objects. We don't want to call the synchronizer hash code to install | 34 // objects. We don't want to call the synchronizer hash code to install |
35 // this value because it may safepoint. | 35 // this value because it may safepoint. |
36 intptr_t object_hash(klassOop k) { | 36 intptr_t object_hash(Klass* k) { |
37 intptr_t hc = k->java_mirror()->mark()->hash(); | 37 intptr_t hc = k->java_mirror()->mark()->hash(); |
38 return hc != markOopDesc::no_hash ? hc : os::random(); | 38 return hc != markOopDesc::no_hash ? hc : os::random(); |
39 } | 39 } |
40 | 40 |
41 // Seed value used for each alternative hash calculated. | 41 // Seed value used for each alternative hash calculated. |