Mercurial > hg > truffle
diff src/share/vm/opto/library_call.cpp @ 6847:65d07d9ee446
8000263: JSR 292: signature types may appear to be unloaded
Reviewed-by: kvn, jrose
author | twisti |
---|---|
date | Mon, 08 Oct 2012 17:04:00 -0700 |
parents | e626685e9f6c |
children | 8e47bac5643a |
line wrap: on
line diff
--- a/src/share/vm/opto/library_call.cpp Mon Oct 08 13:02:13 2012 -0700 +++ b/src/share/vm/opto/library_call.cpp Mon Oct 08 17:04:00 2012 -0700 @@ -2378,13 +2378,15 @@ } } - if (sharpened_klass != NULL) { + // The sharpened class might be unloaded if there is no class loader + // contraint in place. + if (sharpened_klass != NULL && sharpened_klass->is_loaded()) { const TypeOopPtr* tjp = TypeOopPtr::make_from_klass(sharpened_klass); #ifndef PRODUCT if (PrintIntrinsics || PrintInlining || PrintOptoInlining) { - tty->print(" from base type: "); adr_type->dump(); - tty->print(" sharpened value: "); tjp->dump(); + tty->print(" from base type: "); adr_type->dump(); + tty->print(" sharpened value: "); tjp->dump(); } #endif // Sharpen the value type.