[crac] RFR: Provide arguments for restore [v4]

Anton Kozlov akozlov at openjdk.java.net
Sat Mar 5 09:17:26 UTC 2022


> This change adds a new API and implementation to receive a new set of command-line arguments in the restored Java instance. The supplied demo code shows a faster replacement for `javac`.
> 
> The current implementation obligates the first argument of the new set not to start with the dash, otherwise, the java launcher will interpret it as its own parameter. So the first argument should be a "verb" similar to the Main class.

Anton Kozlov has updated the pull request incrementally with two additional commits since the last revision:

 - Better error handling in hotspot
 - Call the main of provided class

-------------

Changes:
  - all: https://git.openjdk.java.net/crac/pull/16/files
  - new: https://git.openjdk.java.net/crac/pull/16/files/b3a09209..b45a5b85

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=crac&pr=16&range=03
 - incr: https://webrevs.openjdk.java.net/?repo=crac&pr=16&range=02-03

  Stats: 73 lines in 5 files changed: 40 ins; 26 del; 7 mod
  Patch: https://git.openjdk.java.net/crac/pull/16.diff
  Fetch: git fetch https://git.openjdk.java.net/crac pull/16/head:pull/16

PR: https://git.openjdk.java.net/crac/pull/16


More information about the crac-dev mailing list