RFR: 8357086: os::xxx functions returning memory size should return size_t [v7]

Anton Artemov duke at openjdk.org
Thu Jun 12 08:43:47 UTC 2025


> Hi,
> 
> in this PR the output value type for functions which return memory are changed, namely:
> 
> 
> static julong available_memory(); --> static size_t available_memory();
> static julong used_memory(); --> static size_t used_memory();
> static julong free_memory(); --> static size_t free_memory(); 
> static jlong total_swap_space(); --> static ssize_t total_swap_space();
> static jlong free_swap_space(); --> static ssize_t free_swap_space(); 
> static julong physical_memory(); --> static size_t physical_memory(); 
> 
> 
> The changes are done so that the other parts of the code have minimal impact. 
> Tested in GHA and Tiers 1-4.

Anton Artemov has updated the pull request incrementally with one additional commit since the last revision:

  8357086: Added missed casts.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25450/files
  - new: https://git.openjdk.org/jdk/pull/25450/files/00d60415..2929f720

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25450&range=06
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25450&range=05-06

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/25450.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25450/head:pull/25450

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


More information about the hotspot-dev mailing list