Integrated: 8373638: RBTree public interface does not check all input parameters for validity
Casper Norrbin
cnorrbin at openjdk.org
Fri Feb 20 10:59:08 UTC 2026
On Fri, 19 Dec 2025 11:05:45 GMT, Casper Norrbin <cnorrbin at openjdk.org> wrote:
> Hi everyone,
>
> The public interface for the `RBTree` assumes most input is valid, and does not check for null pointers. This could lead to potential null pointer dereferences. We should instead assert to give clearer errors in debug builds and to avoid trying to dereference these null pointers.
>
> Testing:
> - Oracle tiers 1-3
This pull request has now been integrated.
Changeset: 16f2b803
Author: Casper Norrbin <cnorrbin at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/16f2b8032729c39ed218de11562bc63aa7b35fd9
Stats: 17 lines in 1 file changed: 11 ins; 0 del; 6 mod
8373638: RBTree public interface does not check all input parameters for validity
Reviewed-by: ayang, dholmes
-------------
PR: https://git.openjdk.org/jdk/pull/28922
More information about the hotspot-dev
mailing list