comparison src/share/vm/code/dependencies.cpp @ 973:ad6585fd4087

6830542: Performance: JVM_DefineClass already verified. Reviewed-by: kamg, phh
author acorn
date Fri, 04 Sep 2009 12:53:02 -0400
parents d1605aabd0a1
children 83c29a26f67c
comparison
equal deleted inserted replaced
4:60ed8af4e346 5:b9f2d8d58730
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(true); 1467 instanceKlass::cast(d)->set_is_marked_dependent();
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)->set_is_marked_dependent(false); 1476 instanceKlass::cast(d)->clear_is_marked_dependent();
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()) {