本文整理汇总了C++中JvmtiFramePop类的典型用法代码示例。如果您正苦于以下问题:C++ JvmtiFramePop类的具体用法?C++ JvmtiFramePop怎么用?C++ JvmtiFramePop使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了JvmtiFramePop类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: JvmtiFramePop
void JvmtiFramePops::print() {
ResourceMark rm;
int n = _pops->length();
for (int i=0; i<n; i++) {
JvmtiFramePop fp = JvmtiFramePop(_pops->at(i));
tty->print("%d: ", i);
fp.print();
tty->cr();
}
}
示例2: while
int
JvmtiFramePops::clear_to(JvmtiFramePop& fp) {
int cleared = 0;
int index = 0;
while (index < _pops->length()) {
JvmtiFramePop pop = JvmtiFramePop(_pops->at(index));
if (pop.above_on_stack(fp)) {
_pops->remove_at(index);
++cleared;
} else {
++index;
}
}
return cleared;
}
示例3:
void
JvmtiEventControllerPrivate::clear_frame_pop(JvmtiEnvThreadState *ets, JvmtiFramePop fpop) {
EC_TRACE(("JVMTI [%s] # clear frame pop - frame=%d",
JvmtiTrace::safe_get_thread_name(ets->get_thread()),
fpop.frame_number() ));
ets->get_frame_pops()->clear(fpop);
recompute_thread_enabled(ets->get_thread()->jvmti_thread_state());
}
示例4: assert
void
JvmtiFramePops::clear(JvmtiFramePop& fp) {
assert(_pops->length() > 0, "No more frame pops");
_pops->remove(fp.frame_number());
}
示例5:
void
JvmtiFramePops::set(JvmtiFramePop& fp) {
if (_pops->find(fp.frame_number()) < 0) {
_pops->append(fp.frame_number());
}
}