Withdrawn: 8255917: runtime/cds/SharedBaseAddress.java failed "assert(reserved_rgn != 0LL) failed: No reserved region"
Yumin Qi
minqi at openjdk.java.net
Fri Dec 11 06:20:57 UTC 2020
On Mon, 7 Dec 2020 05:01:27 GMT, Yumin Qi <minqi at openjdk.org> wrote:
> Hi, Please review
> Windows mapping for file into memory could not happen to reserved memory. In mapping CDS archive we first reserve enough memory then before mapping, release them. For cds archive and using class space, need split the whole space into two, that is, release the whole reserved space and do reservation to the two split spaces again, which is problematic that there is possibility other thread or system can kick in to take the released space.
> The fix is the first step of two steps:
> 1) Do not split reserved memory;
> 2) Remove splitting memory.
> This fix is first step, for Windows and use requested mapping address, reserved for cds archive and ccs on a contiguous space separately, so there is no need to call split. If any reservation failed, release them, go to other way, but do not do the 'real' split either. For Windows (and using class space), the reserved space will be released anyway.
>
> Tests:tier1-5,tier7
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1657
More information about the security-dev
mailing list