Mercurial > hg > truffle
comparison src/share/vm/adlc/formssel.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 | 8c92982cbbc4 |
children | 7eca5de9e0b6 |
comparison
equal
deleted
inserted
replaced
6724:36d1d483d5d6 | 6725:da91efe96a93 |
---|---|
2381 assert( op, "Memory Interface 'disp' can only emit an operand form"); | 2381 assert( op, "Memory Interface 'disp' can only emit an operand form"); |
2382 // Check if this is a ConP, which may require relocation | 2382 // Check if this is a ConP, which may require relocation |
2383 if ( op->is_base_constant(globals) == Form::idealP ) { | 2383 if ( op->is_base_constant(globals) == Form::idealP ) { |
2384 // Find the constant's index: _c0, _c1, _c2, ... , _cN | 2384 // Find the constant's index: _c0, _c1, _c2, ... , _cN |
2385 uint idx = op->constant_position( globals, rep_var); | 2385 uint idx = op->constant_position( globals, rep_var); |
2386 fprintf(fp," virtual bool disp_is_oop() const {"); | 2386 fprintf(fp," virtual relocInfo::relocType disp_reloc() const {"); |
2387 fprintf(fp, " return _c%d->isa_oop_ptr();", idx); | 2387 fprintf(fp, " return _c%d->reloc();", idx); |
2388 fprintf(fp, " }\n"); | 2388 fprintf(fp, " }\n"); |
2389 } | 2389 } |
2390 } | 2390 } |
2391 | 2391 |
2392 // Generate code for internal and external format methods | 2392 // Generate code for internal and external format methods |