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:27:05 UTC

[groovy] branch danielsun/indy-20220918 created (now 1b9c570de0)

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


      at 1b9c570de0 Avoid generating legacy callsite

This branch includes the following new commits:

     new 1b9c570de0 Avoid generating legacy callsite

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.



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

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..40e70138ac 100644
--- a/src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java
+++ b/src/main/java/org/codehaus/groovy/classgen/asm/WriterController.java
@@ -76,7 +76,7 @@ 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"))) {