-
Notifications
You must be signed in to change notification settings - Fork 330
Channel
connecting two JVM
instances
#13206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
64fd1ac
Sending messages between two JVMs with the help of Persistance.Pool
JaroslavTulach 2e3911c
ExecuteMainClass message doesn't have a return value
JaroslavTulach 5b42e1d
Exchange messages between JVMs. Send ReportResult back.
JaroslavTulach 9dc5646
Introducing channel between two JVMs
JaroslavTulach 4d69228
Using RequestFactorial message
JaroslavTulach 1e753eb
Message with a result
JaroslavTulach d7d547b
Return BigInteger result
JaroslavTulach 879a092
Remove runtime dependency on Lookup
JaroslavTulach a23cdd5
Back and forth computation of factorial
JaroslavTulach eeab6a9
Enabling Foreign API support
JaroslavTulach cf02db1
Moving Channel and Message into their own class
JaroslavTulach 32aa5b0
Handling executeMain the old way to avoid access checks associated wi…
JaroslavTulach 22de1c4
Removing usage of NetBeans Lookup from benchmarks
JaroslavTulach 5e1a8e7
Removing org-openide-util-lookup from componentModulesPaths to fix JP…
JaroslavTulach e28e6ea
Allocate both peers of the Channel at once
JaroslavTulach 7133830
Look a Channel peer up by its ID
JaroslavTulach 3f16786
Add debugging symbols when ENSO_LAUNCHER=debug
JaroslavTulach b04963d
Multiple nested callbacks are possible
JaroslavTulach d11a0cf
Allow implementation of Channel messages as records
JaroslavTulach 42d24f4
Avoid global pool reference when local one is available
JaroslavTulach 21fb777
Load pool from a specified Class supplying it
JaroslavTulach bc9aab7
Public factory method to create a Channel
JaroslavTulach 4531025
RuntimeVisualizationsTest uses HandlerFactory
JaroslavTulach fa46a7c
Basic handling of exceptions in the other JVM
JaroslavTulach 0445962
Propagate exceptions back and forth among JVMs
JaroslavTulach 93c6fd5
Allocate the method handle at Channel creation time
JaroslavTulach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -709,7 +709,6 @@ lazy val componentModulesPaths = | |
jline ++ | ||
slf4jApi ++ | ||
Seq( | ||
"org.netbeans.api" % "org-openide-util-lookup" % netbeansApiVersion, | ||
"org.netbeans.api" % "org-netbeans-modules-sampler" % netbeansApiVersion, | ||
"com.google.flatbuffers" % "flatbuffers-java" % flatbuffersVersion, | ||
"com.google.protobuf" % "protobuf-java" % googleProtobufVersion, | ||
|
@@ -2141,13 +2140,10 @@ lazy val `persistance` = (project in file("lib/java/persistance")) | |
Compile / javacOptions := ((Compile / javacOptions).value), | ||
inConfig(Compile)(truffleRunOptionsSettings), | ||
libraryDependencies ++= slf4jApi ++ Seq( | ||
"org.netbeans.api" % "org-openide-util-lookup" % netbeansApiVersion, | ||
"junit" % "junit" % junitVersion % Test, | ||
"com.github.sbt" % "junit-interface" % junitIfVersion % Test | ||
"junit" % "junit" % junitVersion % Test, | ||
"com.github.sbt" % "junit-interface" % junitIfVersion % Test | ||
), | ||
Compile / moduleDependencies ++= slf4jApi ++ Seq( | ||
"org.netbeans.api" % "org-openide-util-lookup" % netbeansApiVersion | ||
) | ||
Compile / moduleDependencies ++= slf4jApi | ||
) | ||
.dependsOn(`persistance-dsl` % Test) | ||
|
||
|
@@ -3356,12 +3352,12 @@ lazy val `runtime-parser` = | |
commands += WithDebugCommand.withDebug, | ||
fork := true, | ||
libraryDependencies ++= Seq( | ||
"junit" % "junit" % junitVersion % Test, | ||
"com.github.sbt" % "junit-interface" % junitIfVersion % Test, | ||
"org.scalatest" %% "scalatest" % scalatestVersion % Test | ||
"junit" % "junit" % junitVersion % Test, | ||
"com.github.sbt" % "junit-interface" % junitIfVersion % Test, | ||
"org.scalatest" %% "scalatest" % scalatestVersion % Test, | ||
"org.netbeans.api" % "org-openide-util-lookup" % netbeansApiVersion % "provided" | ||
), | ||
Compile / moduleDependencies ++= Seq( | ||
"org.netbeans.api" % "org-openide-util-lookup" % netbeansApiVersion | ||
), | ||
// Java compiler is not able to correctly find all the annotation processors, because | ||
// one of them is on module-path. To overcome this, we explicitly list all of them here. | ||
|
@@ -3643,9 +3639,10 @@ lazy val `runtime-instrument-common` = | |
"ENSO_TEST_DISABLE_IR_CACHE" -> "false" | ||
), | ||
libraryDependencies ++= Seq( | ||
"junit" % "junit" % junitVersion % Test, | ||
"com.github.sbt" % "junit-interface" % junitIfVersion % Test, | ||
"org.scalatest" %% "scalatest" % scalatestVersion % Test | ||
"junit" % "junit" % junitVersion % Test, | ||
"com.github.sbt" % "junit-interface" % junitIfVersion % Test, | ||
"org.scalatest" %% "scalatest" % scalatestVersion % Test, | ||
"org.netbeans.api" % "org-openide-util-lookup" % netbeansApiVersion % Test | ||
), | ||
javaModuleName := "org.enso.runtime.instrument.common", | ||
Compile / moduleDependencies ++= slf4jApi ++ Seq( | ||
|
@@ -3739,12 +3736,11 @@ lazy val `runtime-instrument-runtime-server` = | |
Compile / forceModuleInfoCompilation := true, | ||
instrumentationSettings, | ||
Compile / moduleDependencies ++= Seq( | ||
"org.graalvm.truffle" % "truffle-api" % graalMavenPackagesVersion, | ||
"org.graalvm.polyglot" % "polyglot" % graalMavenPackagesVersion, | ||
"org.graalvm.sdk" % "collections" % graalMavenPackagesVersion, | ||
"org.graalvm.sdk" % "word" % graalMavenPackagesVersion, | ||
"org.graalvm.sdk" % "nativeimage" % graalMavenPackagesVersion, | ||
"org.netbeans.api" % "org-openide-util-lookup" % netbeansApiVersion | ||
"org.graalvm.truffle" % "truffle-api" % graalMavenPackagesVersion, | ||
"org.graalvm.polyglot" % "polyglot" % graalMavenPackagesVersion, | ||
"org.graalvm.sdk" % "collections" % graalMavenPackagesVersion, | ||
"org.graalvm.sdk" % "word" % graalMavenPackagesVersion, | ||
"org.graalvm.sdk" % "nativeimage" % graalMavenPackagesVersion | ||
), | ||
Compile / internalModuleDependencies := Seq( | ||
(`runtime-instrument-common` / Compile / exportedModule).value, | ||
|
@@ -4006,6 +4002,7 @@ lazy val `engine-runner` = project | |
"-H:+AddAllCharsets", | ||
"-H:+IncludeAllLocales", | ||
"-H:+RunReachabilityHandlersConcurrently", | ||
"-H:+ForeignAPISupport", | ||
"-R:-InstallSegfaultHandler", | ||
// Workaround a problem with build-/runtime-initialization conflict | ||
// by disabling this service provider | ||
|
@@ -4313,6 +4310,7 @@ lazy val `os-environment` = | |
), | ||
Compile / internalModuleDependencies ++= Seq( | ||
(`engine-common` / Compile / exportedModule).value, | ||
(`persistance` / Compile / exportedModule).value, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
(`logging-utils` / Compile / exportedModule).value, | ||
(`logging-config` / Compile / exportedModule).value | ||
), | ||
|
@@ -4331,8 +4329,24 @@ lazy val `os-environment` = | |
additionalOptions = Seq( | ||
"-ea", | ||
"--features=org.enso.os.environment.TestCollectorFeature", | ||
"-H:+ForeignAPISupport", | ||
"-R:-InstallSegfaultHandler" | ||
) | ||
) ++ (if (GraalVM.EnsoLauncher.debug) { | ||
// useful perf & debug switches: | ||
Seq( | ||
"-g", | ||
"-O0", | ||
"-H:+SourceLevelDebug", | ||
"-H:-DeleteLocalSymbols", | ||
// you may need to set smallJdk := None to use following flags: | ||
// "--trace-class-initialization=org.enso.syntax2.Parser", | ||
// "--diagnostics-mode", | ||
// "--verbose", | ||
"-Dnic=nic" | ||
) | ||
} else { | ||
Seq() | ||
}) | ||
) | ||
}.value, | ||
Test / test := Def | ||
|
@@ -4352,6 +4366,8 @@ lazy val `os-environment` = | |
.value, | ||
Test / fork := true | ||
) | ||
.dependsOn(`persistance`) | ||
.dependsOn(`persistance-dsl` % "provided") | ||
.dependsOn(`engine-common`) | ||
|
||
lazy val `bench-processor` = (project in file("lib/scala/bench-processor")) | ||
|
@@ -4379,8 +4395,7 @@ lazy val `bench-processor` = (project in file("lib/scala/bench-processor")) | |
"org.netbeans.modules.openide.util.ServiceProviderProcessor" | ||
)), | ||
Compile / moduleDependencies := Seq( | ||
"org.graalvm.polyglot" % "polyglot" % graalMavenPackagesVersion, | ||
"org.netbeans.api" % "org-openide-util-lookup" % netbeansApiVersion | ||
"org.graalvm.polyglot" % "polyglot" % graalMavenPackagesVersion | ||
), | ||
Compile / internalModuleDependencies := Seq( | ||
(`engine-common` / Compile / exportedModule).value, | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
distribution/engine/THIRD-PARTY/org.netbeans.api.org-openide-util-lookup-RELEASE180/NOTICES
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NetBeans Lookup shouldn't be used during runtime: 879a092