equal
deleted
inserted
replaced
2958 fst.current()->nmethods_do(cf); |
2958 fst.current()->nmethods_do(cf); |
2959 } |
2959 } |
2960 } |
2960 } |
2961 } |
2961 } |
2962 |
2962 |
2963 void JavaThread::metadata_do(void f(Metadata*)) { |
2963 void JavaThread::metadata_do(MetadataClosure* f) { |
2964 if (has_last_Java_frame()) { |
2964 if (has_last_Java_frame()) { |
2965 // Traverse the execution stack to call f() on the methods in the stack |
2965 // Traverse the execution stack to call f() on the methods in the stack |
2966 for (StackFrameStream fst(this); !fst.is_done(); fst.next()) { |
2966 for (StackFrameStream fst(this); !fst.is_done(); fst.next()) { |
2967 fst.current()->metadata_do(f); |
2967 fst.current()->metadata_do(f); |
2968 } |
2968 } |
4572 p->nmethods_do(cf); |
4572 p->nmethods_do(cf); |
4573 } |
4573 } |
4574 } |
4574 } |
4575 } |
4575 } |
4576 |
4576 |
4577 void Threads::metadata_do(void f(Metadata*)) { |
4577 void Threads::metadata_do(MetadataClosure* f) { |
4578 ALL_JAVA_THREADS(p) { |
4578 ALL_JAVA_THREADS(p) { |
4579 p->metadata_do(f); |
4579 p->metadata_do(f); |
4580 } |
4580 } |
4581 } |
4581 } |
4582 |
4582 |