From 8bb1983a4a231bdbb0947c65643d7edc48c8e1ed Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 11:22:20 -0700 Subject: [PATCH] Initialize endTime on OSX (#75316) Co-authored-by: vsadov <8218165+VSadov@users.noreply.github.com> --- src/coreclr/gc/unix/events.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/gc/unix/events.cpp b/src/coreclr/gc/unix/events.cpp index 7cc55680aaf2f..767b414f04c17 100644 --- a/src/coreclr/gc/unix/events.cpp +++ b/src/coreclr/gc/unix/events.cpp @@ -131,6 +131,7 @@ class GCEvent::Impl if (milliseconds != INFINITE) { uint64_t nanoseconds = (uint64_t)milliseconds * tccMilliSecondsToNanoSeconds; + NanosecondsToTimeSpec(nanoseconds, &endTime); endMachTime = clock_gettime_nsec_np(CLOCK_UPTIME_RAW) + nanoseconds; } #elif HAVE_PTHREAD_CONDATTR_SETCLOCK