[code-reflection] Integrated: Fixed nbody state init issue. Split out ffi-shared java code as separate module.

Gary Frost gfrost at openjdk.org
Wed Mar 26 12:59:54 UTC 2025


On Wed, 26 Mar 2025 12:54:06 GMT, Gary Frost <gfrost at openjdk.org> wrote:

> Fixed nbody state init issue.
> 
> * Nbody was not detecting buffers in 'NEW' state and was incorrectly assuming we had OpenCL buf bindings
>     
> Split out ffi-shared java code as separate module. Updated bld/run as…… necessary.
> 
> * This re-org balances the hat-core and ffi-backends dependencies. Now only ffi backends see infra for handing native backends
> 
> The move to allowing 'escaping' buffers to be minimized complete.   
> 
> * If buffer escapes 'compute' we treat it as if it were Read and Mutated.  Unless the 'reciever' annotates the recieving arg slot with @RO or @WO which will allow us to skip at least one copy.

This pull request has now been integrated.

Changeset: 98c2a85d
Author:    Gary Frost <gfrost at openjdk.org>
URL:       https://git.openjdk.org/babylon/commit/98c2a85de8871e1ab2632648736eaaab7971eaad
Stats:     684 lines in 20 files changed: 302 ins; 271 del; 111 mod

Fixed nbody state init issue. Split out ffi-shared java code as separate module.

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

PR: https://git.openjdk.org/babylon/pull/368


More information about the babylon-dev mailing list