RFR: 8344942: Template-Based Testing Framework [v9]

Emanuel Peter epeter at openjdk.org
Wed May 7 20:32:15 UTC 2025


On Wed, 7 May 2025 12:19:20 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> test/hotspot/jtreg/compiler/lib/template_framework/Template.java line 179:
>> 
>>> 177:  * current code scope with {@link #addName}, and sample from the current or outer scopes with {@link #sampleName}.
>>> 178:  * When generating code, one might want to create {@link Name}s (variables, fields, etc) in local scope, or
>>> 179:  * in some outer scope with the use of {@link Hook}s.
>> 
>> Maybe mention here again that all of the explained above can be found in tutorial like examples (I guess in `TestTutorial`)?. Because it was not that easy to grasp how these different options to create Templates now work in practice.
>
> Ok, fair. This is just a high level explanation. Especially Hooks and Names are also not the "starter features", I think. So it's ok if you have to go look at the examples or other uses, I think.

I linked to the examples like `TestTutorial`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24217#discussion_r2078444613


More information about the hotspot-compiler-dev mailing list