code: private void grow()
    {
  
      m_allocatedSize *= 2;
  
      boolean newVector[] = new boolean[m_allocatedSize];
  
      System.arraycopy(m_values, 0, newVector, 0, m_index + 1);
  
      m_values = newVector;
    }
docs: Grows the size of the stack