Lines Matching refs:stack

59  * For cpu=times, each table entry will have a stack to hold the method
60 * that have been called, effectively keeping an active stack trace
62 * associated with the current stack contents is updated.
65 * and not suspended, and has a stack associated with it, and then
66 * that stack trace is updated with an additional 'hit'.
74 * Initial number of stack elements to track per thread. This
76 * methods deep a thread calls. This stack doubles in size for each
93 Stack *stack; /* Stack of StackElements entry/exit */
173 if ( info->stack != NULL ) {
174 stack_term(info->stack);
175 info->stack = NULL;
408 push_method(Stack *stack, jlong method_start_time, jmethodID method)
414 HPROF_ASSERT(stack!=NULL);
422 stack_push(stack, &new_element);
436 Stack *stack;
438 stack = info->stack;
442 /* If this method is on the stack, just return */
443 depth = stack_depth(stack);
444 p = stack_top(stack);
448 return stack;
452 p = stack_element(stack, i);
455 return stack;
459 /* It wasn't found, create a new stack */
462 HPROF_ERROR(JNI_FALSE, "no frames, method can't be on stack");
468 /* Create a new stack */
477 stack_push(new_stack, stack_element(stack, i));
480 stack_term(stack);
504 HPROF_ASSERT(info->stack!=NULL);
505 depth = stack_depth(info->stack);
506 p = stack_pop(info->stack);
508 HPROF_ERROR(JNI_FALSE, "method return tracked, but stack is empty");
529 e = *(StackElement*)stack_element(info->stack, (depth - i) - 1);
546 p = stack_top(info->stack);
710 info.stack = stack_init(INITIAL_THREAD_STACK_LIMIT,
855 /* Sample thread stack for last time, do NOT free the entry yet. */
934 HPROF_ASSERT(info->stack!=NULL);
935 push_method(info->stack, method_start_time, method);
954 HPROF_ASSERT(info->stack!=NULL);
957 info->stack = insure_method_on_stack(thread, info, current_time,
959 p = stack_top(info->stack);
961 HPROF_ERROR(JNI_FALSE, "expection pop, nothing on stack");
968 p = stack_top(info->stack);
975 HPROF_ERROR(JNI_FALSE, "exception pop stack empty");
994 HPROF_ASSERT(info->stack!=NULL);
997 info->stack = insure_method_on_stack(thread, info, current_time,
999 p = stack_top(info->stack);
1004 p = stack_top(info->stack);
1050 /* Get all stack trace index's for all these threadss */