On Tue, 27 Oct 2026 19:15:10 GMT, Alexey Ushakov <[email protected]> wrote:
>> Should we then convert the current macro FD_ADD_POINT to an (inline) >> function with a boolean return code? >> Currently the FD_ADD_POINT is only used at 2 places in StoreFixedLine; not >> sure what we would/should do there in case of alloc-failures. > > Not really, you can add one more parameter that can be used as an accumulator > for the result state so that you can check it after the sequence of calls > FD_ADD_POINT() Yeah I agree, we can do this. Any idea what do to then in case of alloc-failure in the StoreFixedLine function? Just return early? Or change the function from void to some other return type to indicate failure/success ? Do you maybe already have some good example in the java2d C code I can use here too? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/33513#discussion_r4398504589
