From 7450cf1d5e2e3489b16e8cdceecaea88c4bbb640 Mon Sep 17 00:00:00 2001 From: Olya Gupalo Date: Mon, 16 Dec 2024 17:09:32 +0200 Subject: [PATCH 1/3] Review and move espresso-shell demo to archive; Don't run CI job monthly --- ...jshell.yml => archive-espresso-jshell.yml} | 20 ++++++++---------- README.md | 17 --------------- .../espresso-jshell}/LICENSE | 0 .../espresso-jshell}/README.md | 15 ++++++------- .../espresso-jshell}/build-espresso-jshell.sh | 0 .../espresso-jshell}/diagram.svg | 0 .../jdk/editpad/EditPadProvider.java | 0 .../espresso-jshell}/jshell8.sh | 0 .../execution/DefaultLoaderDelegate.java | 0 .../jshell/execution/DemultiplexInput.java | 0 .../execution/DirectExecutionControl.java | 0 .../execution/ExecutionControlForwarder.java | 0 .../FailOverExecutionControlProvider.java | 0 .../execution/JdiDefaultExecutionControl.java | 0 .../jdk/jshell/execution/JdiEventHandler.java | 0 .../jshell/execution/JdiExecutionControl.java | 0 .../JdiExecutionControlProvider.java | 0 .../jdk/jshell/execution/JdiInitiator.java | 0 .../jdk/jshell/execution/LoaderDelegate.java | 0 .../execution/LocalExecutionControl.java | 0 .../LocalExecutionControlProvider.java | 0 .../execution/MultiplexingOutputStream.java | 0 .../jdk/jshell/execution/PipeInputStream.java | 0 .../jdk/jshell/execution/RemoteCodes.java | 0 .../execution/RemoteExecutionControl.java | 0 .../execution/StreamingExecutionControl.java | 0 .../jshell8/jdk/jshell/execution/Util.java | 0 .../jdk/jshell/execution/package-info.java | 0 .../jdk/jshell/spi/ExecutionControl.java | 0 .../jshell/spi/ExecutionControlProvider.java | 0 .../jshell8/jdk/jshell/spi/ExecutionEnv.java | 0 .../jshell/spi/SPIResolutionException.java | 0 .../espresso-jshell}/reflect-config.json | 0 .../espresso-jshell}/resource-config.json | 0 .../jshell/EspressoExecutionControl.java | 0 .../jshell/EspressoLocalExecutionControl.java | 0 ...EspressoLocalExecutionControlProvider.java | 0 .../espresso/jshell/JavaShellLauncher.java | 0 .../oracle/truffle/espresso/jshell/Lazy.java | 0 .../jdk.jshell.spi.ExecutionControlProvider | 0 .../jdk/jshell/TaskFactory.class | Bin 18320 -> 0 bytes 41 files changed, 16 insertions(+), 36 deletions(-) rename .github/workflows/{espresso-jshell.yml => archive-espresso-jshell.yml} (56%) rename {espresso-jshell => archive/espresso-jshell}/LICENSE (100%) rename {espresso-jshell => archive/espresso-jshell}/README.md (89%) rename {espresso-jshell => archive/espresso-jshell}/build-espresso-jshell.sh (100%) rename {espresso-jshell => archive/espresso-jshell}/diagram.svg (100%) rename {espresso-jshell => archive/espresso-jshell}/jdk.editpad-patch/jdk/editpad/EditPadProvider.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8.sh (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/DefaultLoaderDelegate.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/DemultiplexInput.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/DirectExecutionControl.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/ExecutionControlForwarder.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/FailOverExecutionControlProvider.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/JdiDefaultExecutionControl.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/JdiEventHandler.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/JdiExecutionControl.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/JdiExecutionControlProvider.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/JdiInitiator.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/LoaderDelegate.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/LocalExecutionControl.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/LocalExecutionControlProvider.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/MultiplexingOutputStream.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/PipeInputStream.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/RemoteCodes.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/RemoteExecutionControl.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/StreamingExecutionControl.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/Util.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/execution/package-info.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/spi/ExecutionControl.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/spi/ExecutionControlProvider.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/spi/ExecutionEnv.java (100%) rename {espresso-jshell => archive/espresso-jshell}/jshell8/jdk/jshell/spi/SPIResolutionException.java (100%) rename {espresso-jshell => archive/espresso-jshell}/reflect-config.json (100%) rename {espresso-jshell => archive/espresso-jshell}/resource-config.json (100%) rename {espresso-jshell => archive/espresso-jshell}/src/main/java/com/oracle/truffle/espresso/jshell/EspressoExecutionControl.java (100%) rename {espresso-jshell => archive/espresso-jshell}/src/main/java/com/oracle/truffle/espresso/jshell/EspressoLocalExecutionControl.java (100%) rename {espresso-jshell => archive/espresso-jshell}/src/main/java/com/oracle/truffle/espresso/jshell/EspressoLocalExecutionControlProvider.java (100%) rename {espresso-jshell => archive/espresso-jshell}/src/main/java/com/oracle/truffle/espresso/jshell/JavaShellLauncher.java (100%) rename {espresso-jshell => archive/espresso-jshell}/src/main/java/com/oracle/truffle/espresso/jshell/Lazy.java (100%) rename {espresso-jshell => archive/espresso-jshell}/src/main/resources/META-INF/services/jdk.jshell.spi.ExecutionControlProvider (100%) delete mode 100644 espresso-jshell/jdk.jshell-patch/jdk/jshell/TaskFactory.class diff --git a/.github/workflows/espresso-jshell.yml b/.github/workflows/archive-espresso-jshell.yml similarity index 56% rename from .github/workflows/espresso-jshell.yml rename to .github/workflows/archive-espresso-jshell.yml index 05ade954d..a6409c0bb 100644 --- a/.github/workflows/espresso-jshell.yml +++ b/.github/workflows/archive-espresso-jshell.yml @@ -1,33 +1,31 @@ -name: espresso-jshell +name: archive/espresso-jshell on: push: paths: - - 'espresso-jshell/**' - - '.github/workflows/espresso-jshell.yml' + - 'archive/espresso-jshell/**' + - '.github/workflows/archive-espresso-jshell.yml' pull_request: paths: - - 'espresso-jshell/**' - - '.github/workflows/espresso-jshell.yml' - schedule: - - cron: "0 0 1 * *" # run every month + - 'archive/espresso-jshell/**' + - '.github/workflows/archive-espresso-jshell.yml' workflow_dispatch: permissions: contents: read jobs: run: - name: Run 'espresso-jshell' + name: Run 'archive/espresso-jshell' runs-on: ubuntu-latest timeout-minutes: 20 steps: - uses: actions/checkout@v4 - uses: graalvm/setup-graalvm@v1 with: - java-version: '17' + java-version: '17.0.12' distribution: 'graalvm' components: 'espresso' github-token: ${{ secrets.GITHUB_TOKEN }} - - name: Run 'espresso-jshell' + - name: Run 'archive/espresso-jshell run: | - cd espresso-jshell + cd archive/espresso-jshell ./build-espresso-jshell.sh echo "Math.PI" | ./espresso-jshell diff --git a/README.md b/README.md index 73157cf45..650fad0e5 100644 --- a/README.md +++ b/README.md @@ -127,23 +127,6 @@ cd graalvm-demos -### Java on Truffle (Espresso) - - - - - - - - - - - - - - -
NameDescription
espresso-jshell
espresso-jshell
Demonstrates how to build a native executable of JShell, that executes the dynamically generated bytecode on Espresso
Technologies: Java on Truffle, Native Image, JShell
Reference: Mixing AOT and JIT for Java, Java on Truffle — Going Fully Metacircular
- ### Micronaut diff --git a/espresso-jshell/LICENSE b/archive/espresso-jshell/LICENSE similarity index 100% rename from espresso-jshell/LICENSE rename to archive/espresso-jshell/LICENSE diff --git a/espresso-jshell/README.md b/archive/espresso-jshell/README.md similarity index 89% rename from espresso-jshell/README.md rename to archive/espresso-jshell/README.md index 032ea9809..8a369a5be 100644 --- a/espresso-jshell/README.md +++ b/archive/espresso-jshell/README.md @@ -1,7 +1,7 @@ # Native JShell and Espresso: Mixing AOT and JIT for Java -This demo showcases the integration between [GraalVM Native Image](https://www.graalvm.org/reference-manual/native-image/) and [Java-on-Truffle (Espresso)](https://www.graalvm.org/reference-manual/java-on-truffle/). -It builds a native executable version of `jshell`, that executes the dynamically generated bytecodes on Espresso. This hybrid mode achieves instant startup, beating the vanilla `jshell` in both: time to the first interaction and time to evaluate a simple expression. +This demo showcases the integration between [GraalVM Native Image](https://www.graalvm.org/reference-manual/native-image/) and [Espresso (Java on Truffle)](https://www.graalvm.org/latest/reference-manual/espresso/). +It builds a native executable version of `jshell`, that executes the dynamically generated bytecode on Espresso. This hybrid mode achieves instant startup, beating the vanilla `jshell` in both: time to the first interaction and time to evaluate a simple expression. JShell is a Java read-eval-print loop tool first introduced in Java 9, this demo also allows running `jshell` on Java 8. For further discussions and questions please join our `#espresso` channel on the [GraalVM Slack Community](https://graalvm.slack.com/). @@ -9,12 +9,11 @@ For further discussions and questions please join our `#espresso` channel on the ## Prerequisites - GraalVM for Java 11, 17 or higher -- Native Image support -- Java-on-Truffle (Espresso) support +- Espresso (Java on Truffle) support ## Preparation -1. Download and install the latest GraalVM JDK with Native Image and Java on Truffle (Espresso) components using the [GraalVM JDK Downloader](https://github.com/graalvm/graalvm-jdk-downloader). +1. Download and install the GraalVM JDK with Native Image and Espresso support using the [GraalVM JDK Downloader](https://github.com/graalvm/graalvm-jdk-downloader). ```bash bash <(curl -sL https://get.graalvm.org/jdk) -c 'espresso' ``` @@ -25,10 +24,10 @@ For further discussions and questions please join our `#espresso` channel on the git clone https://github.com/graalvm/graalvm-demos ``` ```bash - cd graalvm-demos/espresso-jshell + cd graalvm-demos/archive/espresso-jshell ``` -## How to Build +## Building Native `jshell` 1. Execute the `build-espresso-jshell.sh` script: ```bash @@ -97,4 +96,4 @@ Since the Java compiler is part of the host code compiled by `native-image`, dyn ### Learn more -Learn more about Java on Truffle on the [GraalVM website](https://www.graalvm.org/latest/reference-manual/java-on-truffle/). +Learn more about mixing JIT and native modes in the [official Espresso documentation](https://www.graalvm.org/latest/reference-manual/espresso/demos/#mixing-aot-and-jit-for-java). \ No newline at end of file diff --git a/espresso-jshell/build-espresso-jshell.sh b/archive/espresso-jshell/build-espresso-jshell.sh similarity index 100% rename from espresso-jshell/build-espresso-jshell.sh rename to archive/espresso-jshell/build-espresso-jshell.sh diff --git a/espresso-jshell/diagram.svg b/archive/espresso-jshell/diagram.svg similarity index 100% rename from espresso-jshell/diagram.svg rename to archive/espresso-jshell/diagram.svg diff --git a/espresso-jshell/jdk.editpad-patch/jdk/editpad/EditPadProvider.java b/archive/espresso-jshell/jdk.editpad-patch/jdk/editpad/EditPadProvider.java similarity index 100% rename from espresso-jshell/jdk.editpad-patch/jdk/editpad/EditPadProvider.java rename to archive/espresso-jshell/jdk.editpad-patch/jdk/editpad/EditPadProvider.java diff --git a/espresso-jshell/jshell8.sh b/archive/espresso-jshell/jshell8.sh similarity index 100% rename from espresso-jshell/jshell8.sh rename to archive/espresso-jshell/jshell8.sh diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/DefaultLoaderDelegate.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/DefaultLoaderDelegate.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/DefaultLoaderDelegate.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/DefaultLoaderDelegate.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/DemultiplexInput.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/DemultiplexInput.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/DemultiplexInput.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/DemultiplexInput.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/DirectExecutionControl.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/DirectExecutionControl.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/DirectExecutionControl.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/DirectExecutionControl.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/ExecutionControlForwarder.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/ExecutionControlForwarder.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/ExecutionControlForwarder.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/ExecutionControlForwarder.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/FailOverExecutionControlProvider.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/FailOverExecutionControlProvider.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/FailOverExecutionControlProvider.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/FailOverExecutionControlProvider.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/JdiDefaultExecutionControl.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/JdiDefaultExecutionControl.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/JdiDefaultExecutionControl.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/JdiDefaultExecutionControl.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/JdiEventHandler.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/JdiEventHandler.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/JdiEventHandler.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/JdiEventHandler.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/JdiExecutionControl.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/JdiExecutionControl.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/JdiExecutionControl.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/JdiExecutionControl.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/JdiExecutionControlProvider.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/JdiExecutionControlProvider.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/JdiExecutionControlProvider.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/JdiExecutionControlProvider.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/JdiInitiator.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/JdiInitiator.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/JdiInitiator.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/JdiInitiator.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/LoaderDelegate.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/LoaderDelegate.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/LoaderDelegate.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/LoaderDelegate.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/LocalExecutionControl.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/LocalExecutionControl.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/LocalExecutionControl.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/LocalExecutionControl.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/LocalExecutionControlProvider.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/LocalExecutionControlProvider.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/LocalExecutionControlProvider.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/LocalExecutionControlProvider.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/MultiplexingOutputStream.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/MultiplexingOutputStream.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/MultiplexingOutputStream.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/MultiplexingOutputStream.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/PipeInputStream.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/PipeInputStream.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/PipeInputStream.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/PipeInputStream.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/RemoteCodes.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/RemoteCodes.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/RemoteCodes.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/RemoteCodes.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/RemoteExecutionControl.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/RemoteExecutionControl.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/RemoteExecutionControl.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/RemoteExecutionControl.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/StreamingExecutionControl.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/StreamingExecutionControl.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/StreamingExecutionControl.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/StreamingExecutionControl.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/Util.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/Util.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/Util.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/Util.java diff --git a/espresso-jshell/jshell8/jdk/jshell/execution/package-info.java b/archive/espresso-jshell/jshell8/jdk/jshell/execution/package-info.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/execution/package-info.java rename to archive/espresso-jshell/jshell8/jdk/jshell/execution/package-info.java diff --git a/espresso-jshell/jshell8/jdk/jshell/spi/ExecutionControl.java b/archive/espresso-jshell/jshell8/jdk/jshell/spi/ExecutionControl.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/spi/ExecutionControl.java rename to archive/espresso-jshell/jshell8/jdk/jshell/spi/ExecutionControl.java diff --git a/espresso-jshell/jshell8/jdk/jshell/spi/ExecutionControlProvider.java b/archive/espresso-jshell/jshell8/jdk/jshell/spi/ExecutionControlProvider.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/spi/ExecutionControlProvider.java rename to archive/espresso-jshell/jshell8/jdk/jshell/spi/ExecutionControlProvider.java diff --git a/espresso-jshell/jshell8/jdk/jshell/spi/ExecutionEnv.java b/archive/espresso-jshell/jshell8/jdk/jshell/spi/ExecutionEnv.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/spi/ExecutionEnv.java rename to archive/espresso-jshell/jshell8/jdk/jshell/spi/ExecutionEnv.java diff --git a/espresso-jshell/jshell8/jdk/jshell/spi/SPIResolutionException.java b/archive/espresso-jshell/jshell8/jdk/jshell/spi/SPIResolutionException.java similarity index 100% rename from espresso-jshell/jshell8/jdk/jshell/spi/SPIResolutionException.java rename to archive/espresso-jshell/jshell8/jdk/jshell/spi/SPIResolutionException.java diff --git a/espresso-jshell/reflect-config.json b/archive/espresso-jshell/reflect-config.json similarity index 100% rename from espresso-jshell/reflect-config.json rename to archive/espresso-jshell/reflect-config.json diff --git a/espresso-jshell/resource-config.json b/archive/espresso-jshell/resource-config.json similarity index 100% rename from espresso-jshell/resource-config.json rename to archive/espresso-jshell/resource-config.json diff --git a/espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/EspressoExecutionControl.java b/archive/espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/EspressoExecutionControl.java similarity index 100% rename from espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/EspressoExecutionControl.java rename to archive/espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/EspressoExecutionControl.java diff --git a/espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/EspressoLocalExecutionControl.java b/archive/espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/EspressoLocalExecutionControl.java similarity index 100% rename from espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/EspressoLocalExecutionControl.java rename to archive/espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/EspressoLocalExecutionControl.java diff --git a/espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/EspressoLocalExecutionControlProvider.java b/archive/espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/EspressoLocalExecutionControlProvider.java similarity index 100% rename from espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/EspressoLocalExecutionControlProvider.java rename to archive/espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/EspressoLocalExecutionControlProvider.java diff --git a/espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/JavaShellLauncher.java b/archive/espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/JavaShellLauncher.java similarity index 100% rename from espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/JavaShellLauncher.java rename to archive/espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/JavaShellLauncher.java diff --git a/espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/Lazy.java b/archive/espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/Lazy.java similarity index 100% rename from espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/Lazy.java rename to archive/espresso-jshell/src/main/java/com/oracle/truffle/espresso/jshell/Lazy.java diff --git a/espresso-jshell/src/main/resources/META-INF/services/jdk.jshell.spi.ExecutionControlProvider b/archive/espresso-jshell/src/main/resources/META-INF/services/jdk.jshell.spi.ExecutionControlProvider similarity index 100% rename from espresso-jshell/src/main/resources/META-INF/services/jdk.jshell.spi.ExecutionControlProvider rename to archive/espresso-jshell/src/main/resources/META-INF/services/jdk.jshell.spi.ExecutionControlProvider diff --git a/espresso-jshell/jdk.jshell-patch/jdk/jshell/TaskFactory.class b/espresso-jshell/jdk.jshell-patch/jdk/jshell/TaskFactory.class deleted file mode 100644 index d32303520966a5354000d080d26d2a607b06ec7a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 18320 zcmd5^349dQ8UMaXva{Jt4wgd~5h4bJ97F|Cl7Jiu5)1*8a0IltY?fqUv%BtYfY{a^ zR@>TBscp5@9#-vPTdNWX)T5WSYA<_QtM;(>ZSCDk|KFQqXOr0k{n^9c&zaeI?|t|6 zzBlCI=a1e;MCWRKI!_DGN}lfL838_tPcEec9Foh-0H4CMO;n!`$FXFBs74c?2ZwXQ{Z(HWA6257lR zVzonIHAEqs-{xw?%0#jn@-4FM*8V}O~jDaF&9 zAkYZA2AW)ac0M!@V@YY#%wYf&or*bvqen08HDWyRU5*IaKEgY-La={Z{wcK zKr|k2+z=g1ria(ÍllMQFV{8abE_1!Wbqoom%Mk<^gU6Q;L! zw)eEJ>e$)6dDEtiT|I5BJGZoT>HIM!eM>Z*i6s*dyK80FP$C-}jMi9#08uW?L`15a zzz@?I9pJPvGnBCSQ^SqnR7`Q|OvFlGODqw~u3(z6z=QgQTbPR1B>TWzWk)O#?Hn51 z6;1bu{)L%jBplxoPRHc8^|ClS5QE}Rb^{Z-)`lZl2o4za$WS^RO=Lw?*>GgBDY5Aw3%uotOi^VH7l+gRVrS;0p=>PPDCPzEH%uU@dw&4Z`jQ(~h`YdvV(?q2K?K#ggO%>eGOwQ<*;XhdlCWt5Ra*t?T3_O=75 zwD_3lpSNRpzh%dBCIQZ*WngXfg{FD<4zRB+G~FZ_a>}`ZnVC>u>nIB71#%|!Ys-j9`HS}sZC zATq6U54c4%i3DAd&z9kELAm9WkVE}a;WdTVTTozOW}+!%5+M^bP%avJ6<4}7I_Zjk(|@Fc-gfD zrRRa5Ae@(0Vq!TS*da0JtqRW*WA(P2+JcM5RtFGHARLcxOo_H2^FuF@r1E(9FW8@M zl`Ahkuvj&Xgd#hz{7=nh96eUFP7fu7My3zA4JeaMN5g|sDB)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-z`oqqp3&Baxx=XBQU{w^go z{v<`Ag+#|eitaf~taH(ERGL$~hapM)hdGmBubgB(QI#fJe=97khpS6iFzO^%At0oR zR77&u&yTnQfME+6#kgb~2>=HBSSNh5D18MBZjV(a7{}Be z`EWmL!d2>l@_S-j`5Eo@D9VLFUQO+xW5AT z?YO@Znd>s#ufUuP?ytgq2=`axUXS~0prkptzZUl^aetjJ0Eh?ZYM&o}mgb{$Ep}xC zd_DaFzWaOJ|A6~*xc>=%#wG}g4%19fq5ji~;OAHS@K;-?Lz}WPq%~<+qJN^gF?Ir(|fQU`#3&RUC&1}DdIKU%5BzDH}_aiTX~y$x|lEFm#L>cyqEW= OrvxWCWj$TNsec1 Date: Tue, 17 Dec 2024 13:09:38 +0200 Subject: [PATCH 2/3] Add missing TaskFactory class --- .../espresso-jshell/jdk.jshell-patch/jdk/jshell/TaskFactory.class | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 archive/espresso-jshell/jdk.jshell-patch/jdk/jshell/TaskFactory.class diff --git a/archive/espresso-jshell/jdk.jshell-patch/jdk/jshell/TaskFactory.class b/archive/espresso-jshell/jdk.jshell-patch/jdk/jshell/TaskFactory.class new file mode 100644 index 000000000..e69de29bb From 7e499973d49603fc4fd7afd1aaefcbe2948c1e92 Mon Sep 17 00:00:00 2001 From: Olga Gupalo Date: Tue, 17 Dec 2024 13:33:59 +0200 Subject: [PATCH 3/3] Update .github/workflows/archive-espresso-jshell.yml --- .github/workflows/archive-espresso-jshell.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/archive-espresso-jshell.yml b/.github/workflows/archive-espresso-jshell.yml index a6409c0bb..f691c5cd7 100644 --- a/.github/workflows/archive-espresso-jshell.yml +++ b/.github/workflows/archive-espresso-jshell.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v4 - uses: graalvm/setup-graalvm@v1 with: - java-version: '17.0.12' + java-version: '17' distribution: 'graalvm' components: 'espresso' github-token: ${{ secrets.GITHUB_TOKEN }}