Skip to content

Commit

Permalink
Initialize endTime on OSX (dotnet#75316)
Browse files Browse the repository at this point in the history
Co-authored-by: vsadov <8218165+VSadov@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and VSadov committed Sep 9, 2022
1 parent d18ff87 commit 8bb1983
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/coreclr/gc/unix/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bb1983

Please sign in to comment.