Integrated: 8311077: Fix -Wconversion warnings in jvmti code

Coleen Phillimore coleenp at openjdk.org
Wed Jul 5 12:34:09 UTC 2023


On Thu, 29 Jun 2023 12:17:23 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> Please review change for mostly fixing return types in the constant pool and metadata to fix -Wconversion warnings in JVMTI code.  The order of preference for changes are: 1. change the types to more distinct types (fields in the constant pool are u2 because that's their size in the classfile), 2. add direct int casts if the value has been checked in asserts above, and 3. checked_cast<> if not verified, and 4. added some pointer_delta_as_ints where needed.
> Tested with tier1-4.

This pull request has now been integrated.

Changeset: cf82e315
Author:    Coleen Phillimore <coleenp at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/cf82e3152bba1d7332ecdc4dd57a2db2f0dc2aa8
Stats:     100 lines in 16 files changed: 5 ins; 2 del; 93 mod

8311077: Fix -Wconversion warnings in jvmti code

Reviewed-by: fparain, matsaave, dholmes

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

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


More information about the serviceability-dev mailing list