[code-reflection] RFR: Expand the example suite with Inlining and Bytecode generation

duke duke at openjdk.org
Thu Aug 14 08:36:24 UTC 2025


On Thu, 14 Aug 2025 07:11:14 GMT, Juan Fumero <duke at openjdk.org> wrote:

> This PR extends the sample suite for learning code reflection.  It adds a couple of examples to learn how to apply inlining.
> 1. Inline values 
> 2. Inline new code-reflected methods after code transformations. 
> 
> In addition, it expands the examples to generate Java bytecode from code models. 
> 
> All examples have been documented. 
> 
> #### How to compile and run 
> 
> 
> export JAVA_HOME=<jdk-babylon-build>
> mvn clean package
> 
> java --enable-preview -cp target/crsamples-1.0-SNAPSHOT.jar oracle.code.samples.InlineExample
> java --enable-preview -cp target/crsamples-1.0-SNAPSHOT.jar oracle.code.samples.MathOptimizerWithInlining

@jjfumero 
Your change (at version fcfca2a269e73b87a7e8492bd103d490dbbfbc1f) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/babylon/pull/525#issuecomment-3187486440


More information about the babylon-dev mailing list