diff options
author | Douglas Wilson <douglas.wilson@gmail.com> | 2020-12-17 15:05:25 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-01-17 05:49:54 -0500 |
commit | d56fdad76c5fe025ad628aad727c8a1c7e745513 (patch) | |
tree | 97fb968d4bd6347bd478574e9ffbc1d2701d7f29 /includes | |
parent | 33fc453fd46e54410472a7bad7585e5d1821c0ec (diff) | |
download | haskell-d56fdad76c5fe025ad628aad727c8a1c7e745513.tar.gz |
rts: gc: use mutex+condvar instead of spinlooks in gc entry/exit
used timed wait on condition variable in waitForGcThreads
fix dodgy timespec calculation
Diffstat (limited to 'includes')
-rw-r--r-- | includes/RtsAPI.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/includes/RtsAPI.h b/includes/RtsAPI.h index c896b5b244..e2d1845819 100644 --- a/includes/RtsAPI.h +++ b/includes/RtsAPI.h @@ -251,20 +251,6 @@ typedef struct _RTSStats { // ----------------------------------- // Internal Counters - // The number of times a GC thread spun on its 'gc_spin' lock. - // Will be zero if the rts was not built with PROF_SPIN - uint64_t gc_spin_spin; - // The number of times a GC thread yielded on its 'gc_spin' lock. - // Will be zero if the rts was not built with PROF_SPIN - uint64_t gc_spin_yield; - // The number of times a GC thread spun on its 'mut_spin' lock. - // Will be zero if the rts was not built with PROF_SPIN - uint64_t mut_spin_spin; - // The number of times a GC thread yielded on its 'mut_spin' lock. - // Will be zero if the rts was not built with PROF_SPIN - uint64_t mut_spin_yield; - // The number of times a GC thread has checked for work across all parallel - // GCs uint64_t any_work; // The number of times a GC thread has iterated it's outer loop across all // parallel GCs |