RFR: 8378178: Change Thread::_allocated_bytes from jlong to uint64_t

Joel Sikström jsikstro at openjdk.org
Wed Feb 18 15:21:35 UTC 2026


On Wed, 18 Feb 2026 15:04:21 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Replace `jlong` with `uint64_t` for `Thread::_allocated_bytes` and `ThreadService::_exited_allocated_bytes`.
> 
> Test: tier1

src/hotspot/share/services/threadService.hpp line 109:

> 107:   static int get_daemon_thread_count()        { return _atomic_daemon_threads_count; }
> 108: 
> 109:   static uint64_t exited_allocated_bytes()       { return AtomicAccess::load(&_exited_allocated_bytes); }

Do we care about alignment here?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29792#discussion_r2822852286


More information about the serviceability-dev mailing list