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 2021/06/27 15:59:40 UTC

[groovy] branch danielsun/indy-callsite updated (ff1c69c -> 7ebfca3)

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

sunlan pushed a change to branch danielsun/indy-callsite
in repository https://gitbox.apache.org/repos/asf/groovy.git.


 discard ff1c69c  GROOVY-9513: Ensure enabling indy by default
     new 7ebfca3  GROOVY-9513: Ensure enabling indy by default

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (ff1c69c)
            \
             N -- N -- N   refs/heads/danielsun/indy-callsite (7ebfca3)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java | 1 +
 1 file changed, 1 insertion(+)

[groovy] 01/01: GROOVY-9513: Ensure enabling indy by default

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch danielsun/indy-callsite
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 7ebfca3c586964dc60f0894549eaf686b3597235
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Jun 27 23:31:58 2021 +0800

    GROOVY-9513: Ensure enabling indy by default
---
 src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java b/src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java
index d5a59e1..fb1a336 100644
--- a/src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java
+++ b/src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java
@@ -81,14 +81,15 @@ public class WriterController {
     public void init(final AsmClassGenerator asmClassGenerator, final GeneratorContext gcon, final ClassVisitor cv, final ClassNode cn) {
         CompilerConfiguration config = cn.getCompileUnit().getConfig();
         Map<String,Boolean> optOptions = config.getOptimizationOptions();
-        boolean invokedynamic = false;
+        boolean invokedynamic = true;
         if (optOptions.isEmpty()) {
             // IGNORE
         } else if (Boolean.FALSE.equals(optOptions.get("all"))) {
+            invokedynamic = false;
             this.optimizeForInt = false;
             // set other optimizations options to false here
         } else {
-            if (config.isIndyEnabled()) invokedynamic = true;
+            if (!config.isIndyEnabled()) invokedynamic = false;
             if (Boolean.FALSE.equals(optOptions.get("int"))) this.optimizeForInt = false;
             if (invokedynamic) this.optimizeForInt = false;
             // set other optimizations options to false here