本文整理汇总了C++中oop::is_constantPoolCache方法的典型用法代码示例。如果您正苦于以下问题:C++ oop::is_constantPoolCache方法的具体用法?C++ oop::is_constantPoolCache怎么用?C++ oop::is_constantPoolCache使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类oop
的用法示例。
在下文中一共展示了oop::is_constantPoolCache方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: oop_print_on
void constantPoolCacheKlass::oop_print_on(oop obj, outputStream* st) {
assert(obj->is_constantPoolCache(), "obj must be constant pool cache");
constantPoolCacheOop cache = (constantPoolCacheOop)obj;
// super print
arrayKlass::oop_print_on(obj, st);
// print constant pool cache entries
for (int i = 0; i < cache->length(); i++) cache->entry_at(i)->print(st, i);
}
示例2: oop_follow_contents
void constantPoolCacheKlass::oop_follow_contents(oop obj) {
assert(obj->is_constantPoolCache(), "obj must be constant pool cache");
constantPoolCacheOop cache = (constantPoolCacheOop)obj;
// Performance tweak: We skip iterating over the klass pointer since we
// know that Universe::constantPoolCacheKlassObj never moves.
// gc of constant pool cache instance variables
MarkSweep::mark_and_push((oop*)cache->constant_pool_addr());
// gc of constant pool cache entries
int i = cache->length();
while (i-- > 0) cache->entry_at(i)->follow_contents();
}
示例3: classify_object
object_type ClassifyObjectClosure::classify_object(oop obj, bool count) {
object_type type = unknown_type;
Klass* k = obj->blueprint();
if (k->as_klassOop() == SystemDictionary::Object_klass()) {
tty->print_cr("Found the class!");
}
if (count) {
k->set_alloc_count(k->alloc_count() + 1);
}
if (obj->is_instance()) {
if (k->oop_is_instanceRef()) {
type = instanceRef_type;
} else {
type = instance_type;
}
} else if (obj->is_typeArray()) {
type = typeArray_type;
} else if (obj->is_objArray()) {
type = objArray_type;
} else if (obj->is_symbol()) {
type = symbol_type;
} else if (obj->is_klass()) {
Klass* k = ((klassOop)obj)->klass_part();
if (k->oop_is_instance()) {
type = instanceKlass_type;
} else {
type = klass_type;
}
} else if (obj->is_method()) {
type = method_type;
} else if (obj->is_constMethod()) {
type = constMethod_type;
} else if (obj->is_methodData()) {
ShouldNotReachHere();
} else if (obj->is_constantPool()) {
type = constantPool_type;
} else if (obj->is_constantPoolCache()) {
type = constantPoolCache_type;
} else if (obj->is_compiledICHolder()) {
type = compiledICHolder_type;
} else {
ShouldNotReachHere();
}
assert(type != unknown_type, "found object of unknown type.");
return type;
}
示例4: oop_oop_iterate
int constantPoolCacheKlass::oop_oop_iterate(oop obj, OopClosure* blk) {
assert(obj->is_constantPoolCache(), "obj must be constant pool cache");
constantPoolCacheOop cache = (constantPoolCacheOop)obj;
// Get size before changing pointers.
// Don't call size() or oop_size() since that is a virtual call.
int size = cache->object_size();
// Performance tweak: We skip iterating over the klass pointer since we
// know that Universe::constantPoolCacheKlassObj never moves.
// iteration over constant pool cache instance variables
blk->do_oop((oop*)cache->constant_pool_addr());
// iteration over constant pool cache entries
for (int i = 0; i < cache->length(); i++) cache->entry_at(i)->oop_iterate(blk);
return size;
}
示例5: assert
int
constantPoolCacheKlass::oop_update_pointers(ParCompactionManager* cm, oop obj) {
assert(obj->is_constantPoolCache(), "obj must be constant pool cache");
constantPoolCacheOop cache = (constantPoolCacheOop)obj;
// Iteration over constant pool cache instance variables
PSParallelCompact::adjust_pointer((oop*)cache->constant_pool_addr());
// iteration over constant pool cache entries
for (int i = 0; i < cache->length(); ++i) {
cache->entry_at(i)->update_pointers();
}
return cache->object_size();
}
示例6: oop_push_contents
void constantPoolCacheKlass::oop_push_contents(PSPromotionManager* pm,
oop obj) {
assert(obj->is_constantPoolCache(), "should be constant pool");
if (ScavengeRootsInCode) {
constantPoolCacheOop cache = (constantPoolCacheOop)obj;
// during a scavenge, it is safe to inspect my pool, since it is perm
constantPoolOop pool = cache->constant_pool();
assert(pool->is_constantPool(), "should be constant pool");
for (int i = 0; i < cache->length(); i++) {
ConstantPoolCacheEntry* e = cache->entry_at(i);
oop* p = (oop*)&e->_f1;
if (PSScavenge::should_scavenge(p))
pm->claim_or_forward_depth(p);
assert(!(e->is_vfinal() && PSScavenge::should_scavenge((oop*)&e->_f2)),
"no live oops here");
}
}
}
示例7: assert
int
constantPoolCacheKlass::oop_update_pointers(ParCompactionManager* cm, oop obj,
HeapWord* beg_addr,
HeapWord* end_addr) {
assert(obj->is_constantPoolCache(), "obj must be constant pool cache");
constantPoolCacheOop cache = (constantPoolCacheOop)obj;
// Iteration over constant pool cache instance variables
heapRef* p;
p = (heapRef*)cache->constant_pool_addr();
PSParallelCompact::adjust_pointer(p, beg_addr, end_addr);
// Iteration over constant pool cache entries
for (int i = 0; i < cache->length(); ++i) {
cache->entry_at(i)->update_pointers(beg_addr, end_addr);
}
return cache->object_size();
}
示例8: oop_size
int constantPoolCacheKlass::oop_size(oop obj) const {
assert(obj->is_constantPoolCache(), "must be constantPool");
return constantPoolCacheOop(obj)->object_size();
}
示例9: oop_is_conc_safe
bool constantPoolCacheKlass::oop_is_conc_safe(oop obj) const {
assert(obj->is_constantPoolCache(), "should be constant pool");
return constantPoolCacheOop(obj)->is_conc_safe();
}
示例10: oop_copy_contents
void constantPoolCacheKlass::oop_copy_contents(PSPromotionManager* pm, oop obj) {
assert(obj->is_constantPoolCache(), "should be constant pool");
}