On Mon, 16 Feb 2026 09:04:36 GMT, Yasumasa Suenaga <[email protected]> wrote:

> I think it is better to keep to use `off64_t` and `sendfile64` because 
> `off_t` is `signed int`. 
> https://man7.org/linux/man-pages/man3/off_t.3type.html (but it wouldn't be a 
> problem if we use `off_t` because vDSO is not so large, I believe)
> 
> IMHO it is better if we can use `#ifdef`.

I think we avoid this by defining `_FILE_OFFSET_BITS=64`  for the whole JDK 
build .
See
https://github.com/openjdk/jdk/blob/b9406a5dbaac7082419ea936f3cc3e61e6ac96d0/make/autoconf/flags-cflags.m4#L462

https://bugs.openjdk.org/browse/JDK-8165620

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

PR Comment: https://git.openjdk.org/jdk/pull/29710#issuecomment-3907272455

Reply via email to