public static void enterFrame ( String className ) { int counter = local . get ( ) . incrementAndGet ( ) ; classNames . get ( ) . add ( className ) ; if ( counter == MAX_STACK_DEPTH ) { throw new RuntimeException ( STACK_OVERFLOW_MSG + getClassNames ( ) ) ; } }
Increment the counter .