On Wed, 4 Jun 2025 14:56:10 GMT, Johannes Bechberger <jbechber...@openjdk.org> wrote:
>> The `sigev_value` member is used to pass data that you can read in the >> signal handler. The address of `t` won't be valid anymore once you return >> from this function. In that example the address of `timerid ` is still valid. > > Why is this a problem? We don't leak `&t` outside of > `create_timer_for_thread`. But I can start using the passed-in parameter `timerid` directly, which should make the code less confusing. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/25302#discussion_r2126829360