# HG changeset patch # User Lukas Stadler # Date 1332949574 -7200 # Node ID 8d18583cf5f7b182c18de1fc8fede8717020f471 # Parent 3ac351ed727086cdf3e161da9fa35f867b7b8f18 reset invocation counter to 1 when method is queued for compilation, this leads to fewer unsuccessful re-enqueues. diff -r 3ac351ed7270 -r 8d18583cf5f7 src/share/vm/interpreter/invocationCounter.cpp --- a/src/share/vm/interpreter/invocationCounter.cpp Wed Mar 28 13:56:41 2012 +0200 +++ b/src/share/vm/interpreter/invocationCounter.cpp Wed Mar 28 17:46:14 2012 +0200 @@ -47,7 +47,11 @@ // large value. Now reduce the value, so that the method can be // executed many more times before re-entering the VM. int old_count = count(); +#ifdef GRAAL + int new_count = 1; +#else int new_count = MIN2(old_count, (int) (CompileThreshold / 2)); +#endif // prevent from going to zero, to distinguish from never-executed methods if (new_count == 0) new_count = 1; if (old_count != new_count) set(state(), new_count);