RFR: 8376125: Out of memory in the CDS archive error with lot of classes [v3]
Johan Sjölen
jsjolen at openjdk.org
Tue Feb 3 09:56:02 UTC 2026
On Sun, 1 Feb 2026 03:59:08 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:
>> src/hotspot/share/cds/filemap.cpp line 723:
>>
>>> 721: void FileMapInfo::seek_to_position(size_t pos) {
>>> 722: if (os::lseek(_fd, (jlong)pos, SEEK_SET) < 0) {
>>> 723: aot_log_error(aot)("Unable to seek to position %zu (errno=%d: %s)", pos, errno, os::strerror(errno));
>>
>> This change seems to be unrelated to this patch. Can it be done in a different patch?
>
> The "(long)pos" to "(jlong)pos" is related, I think. I run into AOT/CDS testing issues without this update. @ashu-mehra Are you OK to keep it part of the pull request?
> static jlong lseek(int fd, jlong offset, int whence);
It was previously wrong, so this does technically fix a separate bug.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29494#discussion_r2758211145
More information about the hotspot-dev
mailing list