Lines Matching refs:stack
2985 // Deal with stack overflow: by restarting at the indicated
2994 // Should reset the revisit stack above, since no class tree
3035 // Deal with stack overflow: by restarting at the indicated
3044 // Should reset the revisit stack above, since no class tree
3200 assert(_markStack.isEmpty(), "Marking stack should be empty");
3719 // push oop on marking stack
3720 // . drain the marking stack
3734 // Clear the revisit stack, just in case there are any
3909 // . check global overflow stack; steal a batch of oops and trace
3983 // stack and the work_queue. XXX FIX ME !!!
4009 // we are restarting after a stack overflow.
4048 // In the case of a restart because of stack overflow,
4150 // marking stack
4157 // simulate a stack overflow
4163 // stack overflow
4165 gclog_or_tty->print_cr("CMS marking stack overflow (benign) at "
4168 // We cannot assert that the overflow stack is full because
4197 // Upon stack overflow, we discard (part of) the stack,
4208 _overflow_stack->reset(); // discard stack contents
4209 _overflow_stack->expand(); // expand the stack if possible
4226 // overflow stack may already have been stolen from us.
4227 // assert(work_q->size() > 0, "Work from overflow stack");
4339 // If _restart_addr is non-NULL, a marking stack overflow
4343 // We may be running into repeated stack overflows, having
4344 // reached the limit of the stack size, while making very
4384 // If _restart_addr is non-NULL, a marking stack overflow
4389 // We may be running into repeated stack overflows, having
4390 // reached the limit of the stack size, while making very
4400 // Deal with stack overflow:
5045 // If we encountered any (marking stack / work queue) overflow
5054 gclog_or_tty->print_cr("Marking stack overflow (benign) "
5077 gclog_or_tty->print_cr(" (benign) Hit max stack size limit ("SIZE_FORMAT")",
5081 gclog_or_tty->print_cr(" (benign) Failed stack doubling ("SIZE_FORMAT"),"
6004 assert(!_revisitStack.isEmpty(), "revisit stack should not be empty");
6014 assert(_revisitStack.isEmpty(), "revisit stack should have been drained");
6033 // Restore any preserved marks as a result of mark stack or
6604 // allocate a stack of the requisite depth
6616 "didn't reserve backing store for all of CMS stack?");
6632 assert(_capacity <= MarkStackSizeMax, "stack bigger than permitted");
6642 // Do not give up existing stack until we have managed to
6647 // Release the backing store associated with old stack
6649 // Reinitialize virtual space for new stack
6651 fatal("Not enough swap for expanded marking stack");
6659 gclog_or_tty->print(" (benign) Failed to expand marking stack from "SIZE_FORMAT"K to "
6757 // The marks are made in the marking bit map and the marking stack is
6771 // push on marking stack (stack should be empty), and drain the
6772 // stack by applying this closure to the oops in the oops popped
6773 // from the stack (i.e. blacken the grey objects)
6775 assert(res, "Should have space to push on empty stack");
6781 "only grey objects on this stack");
6789 // if marking stack is empty, and we are not doing this
6890 // the oops in the oops popped from the stack (i.e. blacken the
7037 // on our marking stack.
7042 // marking stack before returning. This is to satisfy
7051 "only grey objects on this stack");
7156 assert(_markStack->isEmpty(), "stack should be empty");
7165 assert(_markStack->isEmpty(), "would cause duplicates on stack");
7259 "should drain stack to limit stack usage");
7307 // the stack below.
7313 assert(res, "Empty non-zero size stack should have space for single push");
7383 "should drain stack to limit stack usage");
7430 // the stack below, but the global finger sure can and will.
7445 // be gotten from the overflow stack.
7484 assert(_mark_stack->isEmpty(), "stack should be empty");
7491 assert(_mark_stack->isEmpty(), "would cause duplicates on stack");
7507 "should drain stack to limit stack usage");
7516 // the stack below.
7518 assert(res, "Empty non-zero size stack should have space for single push");
7544 // Upon stack overflow, we discard (part of) the stack,
7551 _mark_stack->reset(); // discard stack contents
7552 _mark_stack->expand(); // expand the stack if possible
7568 if (!_mark_stack->push(obj)) { // stack overflow
7570 gclog_or_tty->print_cr("CMS marking stack overflow (benign) at "
7628 // Upon stack overflow, we discard (part of) the stack,
7635 _markStack->reset(); // discard stack contents
7636 _markStack->expand(); // expand the stack if possible
7639 // Upon stack overflow, we discard (part of) the stack,
7650 _overflow_stack->reset(); // discard stack contents
7651 _overflow_stack->expand(); // expand the stack if possible
7664 // use the marking stack to scan this oop's oops.
7669 // simulate a stack overflow
7673 if (simulate_overflow || !_markStack->push(obj)) { // stack overflow
7675 gclog_or_tty->print_cr("CMS marking stack overflow (benign) at "
7701 // Should we push this marked oop on our stack?
7714 // use the marking stack to scan this oop's oops.
7719 // simulate a stack overflow
7725 // stack overflow
7727 gclog_or_tty->print_cr("CMS marking stack overflow (benign) at "
7730 // We cannot assert that the overflow stack is full because
7786 // push on the marking stack (grey set)
7791 // simulate a stack overflow
7849 // on the overflow stack (in which case the mark word has
7850 // been hijacked for chaining into the overflow stack --
7851 // if this is the last object in the overflow stack then
7854 // stack, and the mark word possibly restored to the prototypical
7867 // marking stack
7874 // simulate a stack overflow
8671 // simulate a stack overflow
8720 // stack usage lower, but leave some oops for potential stealers
8735 "no white objects on this stack!");
8763 // simulate a stack overflow
8808 // if stack is empty, check the overflow list
8831 "no white objects on this stack!");
8870 bool CMSCollector::take_from_overflow_list(size_t num, CMSMarkStack* stack) {
8871 assert(stack->isEmpty(), "Expected precondition");
8872 assert(stack->capacity() > num, "Shouldn't bite more than can chew");
8881 bool res = stack->push(cur);
8890 return !stack->isEmpty();
9068 // the stack. The problem is quite ubiquitous and affects
9110 // a chunk of stack being a task (this is
9116 // expect the preserved oop stack (set) to be small,
9365 // stack. Return true if some objects were transferred.
9374 "If we took something, it should now be on our stack");