RFR: 8349580: Do not use address in MemTracker top level functions

Johan Sjölen jsjolen at openjdk.org
Thu Feb 6 21:24:25 UTC 2025


Hi,

Please consider this trivial patch. Note that this gives us consistency with `reserve_memory`.

```c++
  static inline void record_virtual_memory_reserve(void* addr, size_t size, /* ... */);


Thanks.

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

Commit messages:
 - Don't use address, use void*

Changes: https://git.openjdk.org/jdk/pull/23497/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23497&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8349580
  Stats: 8 lines in 4 files changed: 0 ins; 0 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/23497.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23497/head:pull/23497

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


More information about the hotspot-runtime-dev mailing list