Opened 8 years ago

Last modified 8 years ago

#13 new enhancement

Use _stati64() and friends

Reported by: dmik Owned by:
Priority: major Milestone: Enhanced
Component: general Version:
Severity: Keywords:
Cc:

Description

The Windows version of OpenJDK uses the *i64 versions of the LIBC APIs to deal with files which allows to operate on files of more than 4G in size.

On OS/2 I currently replace it with the non-*i64 variants as the latter are not supported by kLIBC.

We should check if the Odin32 file API actually supports 64-bit file addressing on filesystems supporting it themselves on OS/2 (like JFS). And if so, we should then provide the *i64 variants (via MINIVCRT.LIB for instance) and use them on OS/2 as well.

Change History (2)

comment:1 Changed 8 years ago by dmik

To be clear, the MSVCRT emulation library already provides these *i64 variants that use the Osin32 (Win32) file APIs to deal with 64-bit addressing.

However, using them may require to switch the OpenJDK build to MSVCRT completely (by disabling the native kLIBC library in GCC) because many of these LIBC APIs deal with file handles which are tracked separately by MSVCRT and kLIBC and cannot be intermixed.

So I postponed it for later, when we've got something working at all and after we realize that this 64-bit support is really necessary.

comment:2 Changed 8 years ago by dmik

  • Milestone changed from RC to Enhanced
Note: See TracTickets for help on using tickets.