Integrated: 8309599: WeakHandle and OopHandle release should clear obj pointer

Coleen Phillimore coleenp at openjdk.org
Thu Sep 28 12:03:37 UTC 2023


On Tue, 26 Sep 2023 12:47:42 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> This change makes WeakHandle and OopHandle release null out the obj pointer, at the cost of making the release function non-const and some changes that propagated from that.  This enables ObjectMonitor code to test for null to see if the obj was already released, and seems like the right thing to do.  See comments from related PR in the bug report.
> Tested with tier1-4.

This pull request has now been integrated.

Changeset: 0c55887b
Author:    Coleen Phillimore <coleenp at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/0c55887bfb131501a26ba431919d94f2ba08a6c1
Stats:     13 lines in 8 files changed: 2 ins; 1 del; 10 mod

8309599: WeakHandle and OopHandle release should clear obj pointer

Reviewed-by: dholmes, kbarrett

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

PR: https://git.openjdk.org/jdk/pull/15920


More information about the serviceability-dev mailing list