提交 00fbc696 编写于 作者: R roland

7123910: Some CTW tests crash VM: is_loaded() && that->is_loaded()

Summary: handle not loaded array klass in Parse::do_checkcast().
Reviewed-by: kvn, never
上级 90b375d7
......@@ -71,14 +71,14 @@ void Parse::do_checkcast() {
// Throw uncommon trap if class is not loaded or the value we are casting
// _from_ is not loaded, and value is not null. If the value _is_ NULL,
// then the checkcast does nothing.
const TypeInstPtr *tp = _gvn.type(obj)->isa_instptr();
if (!will_link || (tp && !tp->is_loaded())) {
const TypeOopPtr *tp = _gvn.type(obj)->isa_oopptr();
if (!will_link || (tp && tp->klass() && !tp->klass()->is_loaded())) {
if (C->log() != NULL) {
if (!will_link) {
C->log()->elem("assert_null reason='checkcast' klass='%d'",
C->log()->identify(klass));
}
if (tp && !tp->is_loaded()) {
if (tp && tp->klass() && !tp->klass()->is_loaded()) {
// %%% Cannot happen?
C->log()->elem("assert_null reason='checkcast source' klass='%d'",
C->log()->identify(tp->klass()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册