243244245246247248249250251252253
if (0 != (actions & ACTION_ENTER)) { statistic.markEnter(); } if (0 != (actions & ACTION_EXIT)) { statistic.markExit(); } return record; }
175176177178179180181182183184185
stat.markEnter(); assertEquals(1L, stat.getMaxThreads()); assertEquals(1L, stat.getCurThreads()); stat.markExit(); assertEquals(1L, stat.getMaxThreads()); assertEquals(0L, stat.getCurThreads()); } }