comparison 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
comparison
equal deleted inserted replaced
6846:377508648226 6847:65d07d9ee446
2376 sharpened_klass = elem_type->klass(); 2376 sharpened_klass = elem_type->klass();
2377 } 2377 }
2378 } 2378 }
2379 } 2379 }
2380 2380
2381 if (sharpened_klass != NULL) { 2381 // The sharpened class might be unloaded if there is no class loader
2382 // contraint in place.
2383 if (sharpened_klass != NULL && sharpened_klass->is_loaded()) {
2382 const TypeOopPtr* tjp = TypeOopPtr::make_from_klass(sharpened_klass); 2384 const TypeOopPtr* tjp = TypeOopPtr::make_from_klass(sharpened_klass);
2383 2385
2384 #ifndef PRODUCT 2386 #ifndef PRODUCT
2385 if (PrintIntrinsics || PrintInlining || PrintOptoInlining) { 2387 if (PrintIntrinsics || PrintInlining || PrintOptoInlining) {
2386 tty->print(" from base type: "); adr_type->dump(); 2388 tty->print(" from base type: "); adr_type->dump();
2387 tty->print(" sharpened value: "); tjp->dump(); 2389 tty->print(" sharpened value: "); tjp->dump();
2388 } 2390 }
2389 #endif 2391 #endif
2390 // Sharpen the value type. 2392 // Sharpen the value type.
2391 return tjp; 2393 return tjp;
2392 } 2394 }