# serverless-adapter-jdk8 **Repository Path**: lvfeicaiji_admin/serverless-adapter-jdk8 ## Basic Information - **Project Name**: serverless-adapter-jdk8 - **Description**: serverless adapter for jdk8 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-09-20 - **Last Updated**: 2023-09-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Overview `sat-adapter` is a tool used to bridge the [sat tool](http://gitlab.alibaba-inc.com/graal/staticAnalysisTooling) and the AppCDS, AOT, and Pre-initialize features of OpenJDK. Because these features are designed independently and depend on different inputs: - AppCDS: A list containing class id, dependency information, and interfaces - AOT: A list of methods that need to be compiled - Pre-initialize: A list of classes that can be safely initialized The `sat-adapter` converts the json output generated by `sat` into the input file of each feature mentioned above. Here is a sample json data: ```json [ { "className": "Ljava/io/EOFException;", "source": "/java.base/java/io/EOFException.class", "super": "Ljava/io/IOException;", "interfaces": [], "safeForPreinit": "true", "invokedMethods": [ "()V", "(Ljava/lang/String;)V" ] } ] ``` # Build & Usage Build: ```bash mvn clean package # or native image mvn clean package -P native-image ``` Usage: ```bash java -jar sat-adapter.jar --input input.json\ --aot compile-command.txt\ --appcds classlist\ --preinit preinit-classes.txt # or native image ./sat-adapter --input input.json # other paramaters ```