Skip to content

Commit e8b1491

Browse files
authored
Initialize endTime on OSX (#75298)
1 parent bc183b8 commit e8b1491

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/coreclr/gc/unix/events.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ class GCEvent::Impl
131131
if (milliseconds != INFINITE)
132132
{
133133
uint64_t nanoseconds = (uint64_t)milliseconds * tccMilliSecondsToNanoSeconds;
134+
NanosecondsToTimeSpec(nanoseconds, &endTime);
134135
endMachTime = clock_gettime_nsec_np(CLOCK_UPTIME_RAW) + nanoseconds;
135136
}
136137
#elif HAVE_PTHREAD_CONDATTR_SETCLOCK

0 commit comments

Comments
 (0)