Integrated: 7903597: Slim down RuntimeHelper
    Jorn Vernee 
    jvernee at openjdk.org
       
    Mon Dec  4 15:16:28 UTC 2023
    
    
  
On Fri, 1 Dec 2023 16:58:12 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> Remove some of the helper methods in RuntimeHelper. They can be moved inline in the generated code.
> 
> Also: I've elected to move the `System.load(Library)` directives we generated inside RuntimeHelper into the first header class, in order to have it more localized to the actual code that a user sees. That also makes RuntimeHelper more 'dumb'. Only the package declaration is now injected into the template, which makes it easier for users to combined multiple extraction runs (they can just discard one of the generated RuntimeHelpers).
This pull request has now been integrated.
Changeset: 0ba47aea
Author:    Jorn Vernee <jvernee at openjdk.org>
URL:       https://git.openjdk.org/jextract/commit/0ba47aea5ded5a5e982ee570a985859e16260132
Stats:     485 lines in 14 files changed: 172 ins; 265 del; 48 mod
7903597: Slim down RuntimeHelper
Reviewed-by: mcimadamore
-------------
PR: https://git.openjdk.org/jextract/pull/150
    
    
More information about the jextract-dev
mailing list