[jdk21u-dev] Integrated: 8335409: Can't allocate and retain memory from resource area in frame::oops_interpreted_do oop closure after 8329665

Aleksey Shipilev shade at openjdk.org
Tue Aug 27 11:36:07 UTC 2024


On Thu, 22 Aug 2024 12:27:44 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> This fixes the regression introduced by [JDK-8329665](https://bugs.openjdk.org/browse/JDK-8329665), which added `ResourceMark` in `frame::oops_interpreted_do`. This is not really correct, as closures we call with that method can do resource allocations. The patch avoids this problem by cleanly allocating on C heap.
> 
> The mainline patch wants `has_valid_mask` infrastructure added as part of [JDK-8315954](https://bugs.openjdk.org/browse/JDK-8315954). That patch has implications for Graal, and have unresolved bug tail. Therefore, I just picked up relevant infra hunks here.
> 
> Additional testing:
>  - [x] Linux x86_64 server fastedebug, `all`
>  - [x] Linux AArch64 server fastedebug, `all`

This pull request has now been integrated.

Changeset: db914b77
Author:    Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk21u-dev/commit/db914b770b82b8d8cc4e95da83b1c7b7ac3fd9b0
Stats:     57 lines in 3 files changed: 12 ins; 17 del; 28 mod

8335409: Can't allocate and retain memory from resource area in frame::oops_interpreted_do oop closure after 8329665

Reviewed-by: phh, stuefe
Backport-of: 7ab96c74e2c39f430a5c2f65a981da7314a2385b

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

PR: https://git.openjdk.org/jdk21u-dev/pull/942


More information about the jdk-updates-dev mailing list