Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/iterator.cpp @ 20268:4c1b88a53c74
8046670: Make CMS metadata aware closures applicable for other collectors
Reviewed-by: ehelin, mgerdin
author | stefank |
---|---|
date | Tue, 24 Jun 2014 16:20:15 +0200 |
parents | 55fb97c4c58d |
children | 2c6ef90f030a |
comparison
equal
deleted
inserted
replaced
20267:ff1e37e7eb83 | 20268:4c1b88a53c74 |
---|---|
25 #include "precompiled.hpp" | 25 #include "precompiled.hpp" |
26 #include "memory/iterator.hpp" | 26 #include "memory/iterator.hpp" |
27 #include "oops/oop.inline.hpp" | 27 #include "oops/oop.inline.hpp" |
28 | 28 |
29 void KlassToOopClosure::do_klass(Klass* k) { | 29 void KlassToOopClosure::do_klass(Klass* k) { |
30 assert(_oop_closure != NULL, "Not initialized?"); | |
30 k->oops_do(_oop_closure); | 31 k->oops_do(_oop_closure); |
31 } | 32 } |
32 | 33 |
33 void CLDToOopClosure::do_cld(ClassLoaderData* cld) { | 34 void CLDToOopClosure::do_cld(ClassLoaderData* cld) { |
34 cld->oops_do(_oop_closure, &_klass_closure, _must_claim_cld); | 35 cld->oops_do(_oop_closure, &_klass_closure, _must_claim_cld); |