On Mon, 27 Mar 2023 15:09:57 GMT, Jorn Vernee <jver...@openjdk.org> wrote:

> > The code changes look good, but the javadoc should be updated to reflect 
> > the new constraints.
> 
> We currently have this:
> 
> ```
> @throws IllegalArgumentException if the provided function descriptor is not 
> supported by this linker.
> ```
> 
> Which technically seems enough to cover this as well, as byte order is part 
> of the layouts that are part of the function descriptor. I'm not sure if we 
> want to get very detailed here. Different linker implementations might make 
> different decisions, at least theoretically, but this is also the case for 
> the fallback linker which e.g. rejects unions and accepts layouts with any 
> byte order.

I'm noting an asymmetry between this and 
https://github.com/openjdk/jdk/pull/13164. I think the same arguments apply 
for/against both.

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

PR Comment: https://git.openjdk.org/jdk/pull/13161#issuecomment-1485336428

Reply via email to