From a72131695da57adee70e3a9f510d1f48fd8a8adb Mon Sep 17 00:00:00 2001 From: vsadov <8218165+VSadov@users.noreply.github.com> Date: Thu, 8 Sep 2022 11:49:57 -0700 Subject: [PATCH] Initialize endTime on OSX --- 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