< prev index next >

src/share/vm/interpreter/rewriter.cpp

Print this page

        

*** 542,561 **** // May have to fix invokedynamic bytecodes if invokestatic/InterfaceMethodref // entries had to be added. patch_invokedynamic_bytecodes(); } ! void Rewriter::rewrite(instanceKlassHandle klass, TRAPS) { if (!DumpSharedSpaces) { ! assert(!MetaspaceShared::is_in_shared_space(klass()), "archive methods must not be rewritten at run time"); } ResourceMark rm(THREAD); Rewriter rw(klass, klass->constants(), klass->methods(), CHECK); // (That's all, folks.) } ! Rewriter::Rewriter(instanceKlassHandle klass, const constantPoolHandle& cpool, Array<Method*>* methods, TRAPS) : _klass(klass), _pool(cpool), _methods(methods), _cp_map(cpool->length()), _cp_cache_map(cpool->length() / 2), --- 542,561 ---- // May have to fix invokedynamic bytecodes if invokestatic/InterfaceMethodref // entries had to be added. patch_invokedynamic_bytecodes(); } ! void Rewriter::rewrite(InstanceKlass* klass, TRAPS) { if (!DumpSharedSpaces) { ! assert(!MetaspaceShared::is_in_shared_space(klass), "archive methods must not be rewritten at run time"); } ResourceMark rm(THREAD); Rewriter rw(klass, klass->constants(), klass->methods(), CHECK); // (That's all, folks.) } ! Rewriter::Rewriter(InstanceKlass* klass, const constantPoolHandle& cpool, Array<Method*>* methods, TRAPS) : _klass(klass), _pool(cpool), _methods(methods), _cp_map(cpool->length()), _cp_cache_map(cpool->length() / 2),
< prev index next >