You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2022/01/08 15:09:29 UTC

[groovy] branch GROOVY_3_0_X updated: Trivial tweak: align indy threshold with JIT threshold

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY_3_0_X by this push:
     new 7d433fc  Trivial tweak: align indy threshold with JIT threshold
7d433fc is described below

commit 7d433fcf42dd1a5374687b35ee2210c06cb8df57
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Jan 8 23:05:27 2022 +0800

    Trivial tweak: align indy threshold with JIT threshold
    
    (cherry picked from commit 4f27d367dbc4fc506aa06883f4020ac2b2f744a2)
---
 src/main/java/org/codehaus/groovy/vmplugin/v8/IndyInterface.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/vmplugin/v8/IndyInterface.java b/src/main/java/org/codehaus/groovy/vmplugin/v8/IndyInterface.java
index 5391b3d..122ed4f 100644
--- a/src/main/java/org/codehaus/groovy/vmplugin/v8/IndyInterface.java
+++ b/src/main/java/org/codehaus/groovy/vmplugin/v8/IndyInterface.java
@@ -47,8 +47,8 @@ import java.util.stream.Stream;
  * methods and classes.
  */
 public class IndyInterface {
-    private static final long INDY_OPTIMIZE_THRESHOLD = SystemUtil.getLongSafe("groovy.indy.optimize.threshold", 100_000L);
-    private static final long INDY_FALLBACK_THRESHOLD = SystemUtil.getLongSafe("groovy.indy.fallback.threshold", 100_000L);
+    private static final long INDY_OPTIMIZE_THRESHOLD = SystemUtil.getLongSafe("groovy.indy.optimize.threshold", 10_000L);
+    private static final long INDY_FALLBACK_THRESHOLD = SystemUtil.getLongSafe("groovy.indy.fallback.threshold", 10_000L);
 
     /**
      * flags for method and property calls