[foreign-memaccess+abi] RFR: 8264434: Remove ResourceScope-less overload from API [v2]

Maurizio Cimadamore mcimadamore at openjdk.java.net
Tue Mar 30 16:25:46 UTC 2021


On Tue, 30 Mar 2021 16:16:21 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> LGTM. I agree with Paul that it would be nice to rename `ofXYZ` factories to something that is more amenable to static importing (as also discussed offline), e.g. `ResourceScope.ofImplicit()` -> `ResourceScope.implicit()` to be consistent with `SegmentAllocator.implicit()`.

I think whatever naming we choose, we need to have some visual distinction between factories which are just "accessors" e.g. ResourceScope.globalScope and things which create a new scope e.g. ResourceScope.ofImplicit. But, as discussed offline, I don't want to go down the road of calling the latter `makeImplicitScope` or `newImplicitScope`.

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

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


More information about the panama-dev mailing list