comparison src/share/vm/code/dependencies.cpp @ 975:83c29a26f67c

6879572: SA fails _is_marked_dependent not found Reviewed-by: kamg, dcubed
author acorn
date Wed, 16 Sep 2009 15:42:46 -0400
parents ad6585fd4087
children 54b3b351d6f9
comparison
equal deleted inserted replaced
5:b9f2d8d58730 6:0cb9d43d4477
1462 // Mark all dependee and all its superclasses 1462 // Mark all dependee and all its superclasses
1463 // Mark transitive interfaces 1463 // Mark transitive interfaces
1464 for (ContextStream str(*this); str.next(); ) { 1464 for (ContextStream str(*this); str.next(); ) {
1465 klassOop d = str.klass(); 1465 klassOop d = str.klass();
1466 assert(!instanceKlass::cast(d)->is_marked_dependent(), "checking"); 1466 assert(!instanceKlass::cast(d)->is_marked_dependent(), "checking");
1467 instanceKlass::cast(d)->set_is_marked_dependent(); 1467 instanceKlass::cast(d)->set_is_marked_dependent(true);
1468 } 1468 }
1469 } 1469 }
1470 1470
1471 DepChange::~DepChange() { 1471 DepChange::~DepChange() {
1472 // Unmark all dependee and all its superclasses 1472 // Unmark all dependee and all its superclasses
1473 // Unmark transitive interfaces 1473 // Unmark transitive interfaces
1474 for (ContextStream str(*this); str.next(); ) { 1474 for (ContextStream str(*this); str.next(); ) {
1475 klassOop d = str.klass(); 1475 klassOop d = str.klass();
1476 instanceKlass::cast(d)->clear_is_marked_dependent(); 1476 instanceKlass::cast(d)->set_is_marked_dependent(false);
1477 } 1477 }
1478 } 1478 }
1479 1479
1480 bool DepChange::involves_context(klassOop k) { 1480 bool DepChange::involves_context(klassOop k) {
1481 if (k == NULL || !Klass::cast(k)->oop_is_instance()) { 1481 if (k == NULL || !Klass::cast(k)->oop_is_instance()) {