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/09/17 19:31:02 UTC

[groovy] branch danielsun/indy-20220918 updated (1b9c570de0 -> 06d0ca5640)

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

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


 discard 1b9c570de0 Avoid generating legacy callsite
     new 06d0ca5640 Avoid generating legacy callsite

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   (1b9c570de0)
            \
             N -- N -- N   refs/heads/danielsun/indy-20220918 (06d0ca5640)

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


[groovy] 01/01: Avoid generating legacy callsite

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-20220918
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 06d0ca5640f3e8f66ce928cee2eb783a646c79d1
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Sep 18 03:26:31 2022 +0800

    Avoid generating legacy callsite
---
 src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java | 4 ++--
 1 file changed, 2 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 39f05cb26e..e88144137a 100644
--- a/src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java
+++ b/src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java
@@ -76,9 +76,9 @@ 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
+            this.optimizeForInt = false;
         } else if (Boolean.FALSE.equals(optOptions.get("all"))) {
             this.optimizeForInt = false;
             // set other optimizations options to false here