Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2022 19:40:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262273] Subsuquent Calls to clock_gettime(CLOCK_THREAD_CPUTIME_ID,... ) return time in the past
Message-ID:  <bug-262273-227-eds3RoNF4Z@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-262273-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-262273-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262273

--- Comment #13 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D28d08dc7d051a4e058cc0004cf4dd884f=
87037a2

commit 28d08dc7d051a4e058cc0004cf4dd884f87037a2
Author:     firk <firk@cantconnect.ru>
AuthorDate: 2022-03-15 22:22:21 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-03-17 19:39:00 +0000

    clock_gettime: Fix CLOCK_THREAD_CPUTIME_ID race

    Use a spinlock section instead of a critical section to synchronize with
    statclock().  Otherwise the CLOCK_THREAD_CPUTIME_ID clock can appear to
    go backwards.

    PR:             262273
    Reviewed by:    markj
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D34568

 sys/kern/kern_time.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262273-227-eds3RoNF4Z>