[foreign] RFR: cleanup Pointer API
Sundararajan Athijegannathan
sundararajan.athijegannathan at oracle.com
Tue May 15 16:44:36 UTC 2018
* Runtime class could be final and package-private. All static helpers
methods could be package-private as well - because HeaderImplGenerator
in the same package creates method handles on those methods.
* Pointer.toString, .copy methods: "public" removed. Usually in APIs, we
write "public" explicitly - even though interface methods are public by
default, right?
+1 other than that.
-Sundar
On 15/05/18, 8:08 PM, Maurizio Cimadamore wrote:
> Hi,
> in preparation for the changes to the pointer API outlined in [1],
> here's a cleanup that removes the methods from the Pointer interface
> that are only required to support code generation.
>
> These methods are now moved into a new class, called RuntimeSupport.
> I've tweaked the HeaderImplGenerator class to perform indirect access
> to these method, through a bunch of static MH fields (this is to avoid
> access errors due to module boundaries).
>
> Webrev:
>
> http://cr.openjdk.java.net/~mcimadamore/panama/pointer-cleanup/
>
> Maurizio
>
>
More information about the panama-dev
mailing list