On Fri, 4 Aug 2023 14:37:07 GMT, Coleen Phillimore <cole...@openjdk.org> wrote:

> This patch fixes Wconversion in code in the src/hotspot/share/prims 
> directory.  Most of the changes correct the types.  jfieldID's are created 
> with the int offset returned by InstanceKlass::field_offset().
>      int     field_offset      (int index) const { return 
> field(index).offset(); }
> 
> So when we get the field offset back, it's an int.
> 
> Also stackwalker passes jlong, so made that consistent.
> 
> Tested with tier1 on Oracle supported platforms.

This pull request has now been integrated.

Changeset: 8752d498
Author:    Coleen Phillimore <cole...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/8752d4984a762393ffbe53181e07ce254df2cd19
Stats:     38 lines in 11 files changed: 5 ins; 2 del; 31 mod

8313785: Fix -Wconversion warnings in prims code

Reviewed-by: sspitsyn, dlong

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

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

Reply via email to