comparison src/cpu/sparc/vm/frame_sparc.inline.hpp @ 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 eaa9557116a2
children cd3d6a6b95d9
comparison
equal deleted inserted replaced
6724:36d1d483d5d6 6725:da91efe96a93
136 136
137 inline int frame::interpreter_frame_monitor_size() { 137 inline int frame::interpreter_frame_monitor_size() {
138 return round_to(BasicObjectLock::size(), WordsPerLong); 138 return round_to(BasicObjectLock::size(), WordsPerLong);
139 } 139 }
140 140
141 inline methodOop* frame::interpreter_frame_method_addr() const { 141 inline Method** frame::interpreter_frame_method_addr() const {
142 interpreterState istate = get_interpreterState(); 142 interpreterState istate = get_interpreterState();
143 return &istate->_method; 143 return &istate->_method;
144 } 144 }
145 145
146 146
147 // Constant pool cache 147 // Constant pool cache
148 148
149 // where LcpoolCache is saved: 149 // where LcpoolCache is saved:
150 inline constantPoolCacheOop* frame::interpreter_frame_cpoolcache_addr() const { 150 inline ConstantPoolCache** frame::interpreter_frame_cpoolcache_addr() const {
151 interpreterState istate = get_interpreterState(); 151 interpreterState istate = get_interpreterState();
152 return &istate->_constants; // should really use accessor 152 return &istate->_constants; // should really use accessor
153 } 153 }
154 154
155 inline constantPoolCacheOop* frame::interpreter_frame_cache_addr() const { 155 inline ConstantPoolCache** frame::interpreter_frame_cache_addr() const {
156 interpreterState istate = get_interpreterState(); 156 interpreterState istate = get_interpreterState();
157 return &istate->_constants; 157 return &istate->_constants;
158 } 158 }
159 159
160 #else // !CC_INTERP 160 #else // !CC_INTERP
211 211
212 inline int frame::interpreter_frame_monitor_size() { 212 inline int frame::interpreter_frame_monitor_size() {
213 return round_to(BasicObjectLock::size(), WordsPerLong); 213 return round_to(BasicObjectLock::size(), WordsPerLong);
214 } 214 }
215 215
216 inline methodOop* frame::interpreter_frame_method_addr() const { 216 inline Method** frame::interpreter_frame_method_addr() const {
217 return (methodOop*)sp_addr_at( Lmethod->sp_offset_in_saved_window()); 217 return (Method**)sp_addr_at( Lmethod->sp_offset_in_saved_window());
218 } 218 }
219 219
220 220
221 // Constant pool cache 221 // Constant pool cache
222 222
223 // where LcpoolCache is saved: 223 // where LcpoolCache is saved:
224 inline constantPoolCacheOop* frame::interpreter_frame_cpoolcache_addr() const { 224 inline ConstantPoolCache** frame::interpreter_frame_cpoolcache_addr() const {
225 return (constantPoolCacheOop*)sp_addr_at(LcpoolCache->sp_offset_in_saved_window()); 225 return (ConstantPoolCache**)sp_addr_at(LcpoolCache->sp_offset_in_saved_window());
226 } 226 }
227 227
228 inline constantPoolCacheOop* frame::interpreter_frame_cache_addr() const { 228 inline ConstantPoolCache** frame::interpreter_frame_cache_addr() const {
229 return (constantPoolCacheOop*)sp_addr_at( LcpoolCache->sp_offset_in_saved_window()); 229 return (ConstantPoolCache**)sp_addr_at( LcpoolCache->sp_offset_in_saved_window());
230 } 230 }
231 #endif // CC_INTERP 231 #endif // CC_INTERP
232 232
233 233
234 inline JavaCallWrapper* frame::entry_frame_call_wrapper() const { 234 inline JavaCallWrapper* frame::entry_frame_call_wrapper() const {