src/share/vm/interpreter/invocationCounter.cpp

changeset 1089
c664a0794f85
parent 435
a61af66fc99e
child 1279
bd02caa94611
     1.1 --- a/src/share/vm/interpreter/invocationCounter.cpp	Fri Mar 20 11:23:24 2009 -0400
     1.2 +++ b/src/share/vm/interpreter/invocationCounter.cpp	Fri Mar 20 22:08:48 2009 -0400
     1.3 @@ -47,6 +47,8 @@
     1.4    // executed many more times before re-entering the VM.
     1.5    int old_count = count();
     1.6    int new_count = MIN2(old_count, (int) (CompileThreshold / 2));
     1.7 +  // prevent from going to zero, to distinguish from never-executed methods
     1.8 +  if (new_count == 0)  new_count = 1;
     1.9    if (old_count != new_count)  set(state(), new_count);
    1.10  }
    1.11  

mercurial