[foreign-memaccess+abi] Integrated: Add exhaustive test for resource scope handle

Maurizio Cimadamore mcimadamore at openjdk.java.net
Wed Apr 14 17:19:15 UTC 2021


On Wed, 14 Apr 2021 16:06:02 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> During some recent benchmarking, we have identified an issue where acquiring/closing a scope handle on an implicit scope was not working as expected, and was throwing an NPE instead.
> This patch adds a test which acquires 5 handles (recursively), and then release them.
> It checks all the different scope variants, and, for each acquired handle it also tests for idempotency.

This pull request has now been integrated.

Changeset: 99b08b69
Author:    Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.java.net/panama-foreign/commit/99b08b69
Stats:     33 lines in 1 file changed: 33 ins; 0 del; 0 mod

Add exhaustive test for resource scope handle

Reviewed-by: chegar

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

PR: https://git.openjdk.java.net/panama-foreign/pull/504


More information about the panama-dev mailing list