@Override
    public int push(final T element) {
        if (isOverflow()) {
            overflowIndex++;
            final int point = index + overflowIndex;
            onOverflow(point);
            return point;
        }

        checkExtend(index + 1);
        factory.setSequence(element, sequence++);
        stack[index++] = element;
        markDepth(element, index);
        return index;
    }
@author netspider
@author Woonduk Kang(emeroad)
@author jaehong.kim
agent-module/profiler/src/main/java/com/navercorp/pinpoint/profiler/context/DefaultCallStack.java