Mercurial > hg > truffle
comparison src/share/vm/oops/instanceKlassKlass.cpp @ 1490:f03d0a26bf83
6888954: argument formatting for assert() and friends
Reviewed-by: kvn, twisti, apetrusenko, never, dcubed
author | jcoomes |
---|---|
date | Thu, 22 Apr 2010 13:23:15 -0700 |
parents | 4e6abf09f540 |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1489:cff162798819 | 1490:f03d0a26bf83 |
---|---|
710 klassOop super = ik->super(); | 710 klassOop super = ik->super(); |
711 Klass* sib = ik->next_sibling(); | 711 Klass* sib = ik->next_sibling(); |
712 int sib_count = 0; | 712 int sib_count = 0; |
713 while (sib != NULL) { | 713 while (sib != NULL) { |
714 if (sib == ik) { | 714 if (sib == ik) { |
715 fatal1("subclass cycle of length %d", sib_count); | 715 fatal(err_msg("subclass cycle of length %d", sib_count)); |
716 } | 716 } |
717 if (sib_count >= 100000) { | 717 if (sib_count >= 100000) { |
718 fatal1("suspiciously long subclass list %d", sib_count); | 718 fatal(err_msg("suspiciously long subclass list %d", sib_count)); |
719 } | 719 } |
720 guarantee(sib->as_klassOop()->is_klass(), "should be klass"); | 720 guarantee(sib->as_klassOop()->is_klass(), "should be klass"); |
721 guarantee(sib->as_klassOop()->is_perm(), "should be in permspace"); | 721 guarantee(sib->as_klassOop()->is_perm(), "should be in permspace"); |
722 guarantee(sib->super() == super, "siblings should have same superklass"); | 722 guarantee(sib->super() == super, "siblings should have same superklass"); |
723 sib = sib->next_sibling(); | 723 sib = sib->next_sibling(); |