RFR: 8338257: UTF8 lengths should be size_t not int [v7]

David Holmes dholmes at openjdk.org
Thu Aug 29 08:02:21 UTC 2024


On Thu, 29 Aug 2024 05:53:25 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> Many of these translations seem awkward, since they convert to size_t only to then convert back to int.

Can you be more specific here please? I know the most awkward case is where we have an in/out parameter that brings in an int and sends out a size_t, but there is not much to do about that without converting everything to int and I think there will be a lot of fan out because ultimately these mostly come back to array lengths, and symbol lengths, which are all int (and don't need to be bigger).

So I would really prefer to not try and apply more bandages at this stage. I really just want this part fixed so I can proceed with the JNI update.

Thanks.

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

PR Comment: https://git.openjdk.org/jdk/pull/20560#issuecomment-2316956852


More information about the serviceability-dev mailing list