Mercurial > hg > truffle
comparison src/share/vm/oops/klass.cpp @ 4762:069ab3f976d3
7118863: Move sizeof(klassOopDesc) into the *Klass::*_offset_in_bytes() functions
Summary: Moved sizeof(klassOopDesc), changed the return type to ByteSize and removed the _in_bytes suffix.
Reviewed-by: never, bdelsart, coleenp, jrose
author | stefank |
---|---|
date | Wed, 07 Dec 2011 11:35:03 +0100 |
parents | 8ce625481709 |
children | 4f3ce9284781 |
comparison
equal
deleted
inserted
replaced
4761:65149e74c706 | 4762:069ab3f976d3 |
---|---|
142 for (juint i = 0; i < Klass::primary_super_limit(); i++) { | 142 for (juint i = 0; i < Klass::primary_super_limit(); i++) { |
143 kl->_primary_supers[i] = NULL; | 143 kl->_primary_supers[i] = NULL; |
144 } | 144 } |
145 kl->set_secondary_supers(NULL); | 145 kl->set_secondary_supers(NULL); |
146 oop_store_without_check((oop*) &kl->_primary_supers[0], k); | 146 oop_store_without_check((oop*) &kl->_primary_supers[0], k); |
147 kl->set_super_check_offset(primary_supers_offset_in_bytes() + sizeof(oopDesc)); | 147 kl->set_super_check_offset(in_bytes(primary_supers_offset())); |
148 } | 148 } |
149 | 149 |
150 kl->set_java_mirror(NULL); | 150 kl->set_java_mirror(NULL); |
151 kl->set_modifier_flags(0); | 151 kl->set_modifier_flags(0); |
152 kl->set_layout_helper(Klass::_lh_neutral_value); | 152 kl->set_layout_helper(Klass::_lh_neutral_value); |