本文整理汇总了C++中oop::follow_header方法的典型用法代码示例。如果您正苦于以下问题:C++ oop::follow_header方法的具体用法?C++ oop::follow_header怎么用?C++ oop::follow_header使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类oop
的用法示例。
在下文中一共展示了oop::follow_header方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: oop_follow_contents
void compiledICHolderKlass::oop_follow_contents(oop obj) {
assert(obj->is_compiledICHolder(), "must be compiledICHolder");
compiledICHolderOop c = compiledICHolderOop(obj);
obj->follow_header();
MarkSweep::mark_and_push(c->adr_holder_method());
MarkSweep::mark_and_push(c->adr_holder_klass());
}
示例2: oop_follow_contents
void methodDataKlass::oop_follow_contents(oop obj) {
assert (obj->is_methodData(), "object must be method data");
methodDataOop m = methodDataOop(obj);
obj->follow_header();
MarkSweep::mark_and_push(m->adr_method());
ResourceMark rm;
for (ProfileData* data = m->first_data();
m->is_valid(data);
data = m->next_data(data)) {
data->follow_contents();
}
}
示例3: oop_follow_contents
void methodDataKlass::oop_follow_contents(ParCompactionManager* cm,
oop obj) {
assert (obj->is_methodData(), "object must be method data");
methodDataOop m = methodDataOop(obj);
obj->follow_header(cm);
PSParallelCompact::mark_and_push(cm, m->adr_method());
ResourceMark rm;
for (ProfileData* data = m->first_data();
m->is_valid(data);
data = m->next_data(data)) {
data->follow_contents(cm);
}
}
示例4: oop_follow_contents
void klassKlass::oop_follow_contents(oop obj) {
Klass* k = Klass::cast(klassOop(obj));
// If we are alive it is valid to keep our superclass and subtype caches alive
MarkSweep::mark_and_push(k->adr_super());
for (juint i = 0; i < Klass::primary_super_limit(); i++)
MarkSweep::mark_and_push(k->adr_primary_supers()+i);
MarkSweep::mark_and_push(k->adr_secondary_super_cache());
MarkSweep::mark_and_push(k->adr_secondary_supers());
MarkSweep::mark_and_push(k->adr_java_mirror());
MarkSweep::mark_and_push(k->adr_name());
// We follow the subklass and sibling links at the end of the
// marking phase, since otherwise following them will prevent
// class unloading (all classes are transitively linked from
// java.lang.Object).
MarkSweep::revisit_weak_klass_link(k);
obj->follow_header();
}