[Git][ghc/ghc][wip/marge_bot_batch_merge_job] 24 commits: rts/Messages: Refactor

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Fri Dec 16 11:12:54 UTC 2022



Marge Bot pushed to branch wip/marge_bot_batch_merge_job at Glasgow Haskell Compiler / GHC


Commits:
df661ea8 by Ben Gamari at 2022-12-16T06:12:43-05:00
rts/Messages: Refactor

This doesn't change behavior but makes the code a bit easier to follow.

- - - - -
a8083e7f by Ben Gamari at 2022-12-16T06:12:43-05:00
rts/ThreadPaused: Ordering fixes

- - - - -
3eb7a5e2 by Ben Gamari at 2022-12-16T06:12:43-05:00
eventlog: Silence spurious data race

- - - - -
2609b7fb by Ben Gamari at 2022-12-16T06:12:43-05:00
Introduce SET_INFO_RELEASE for Cmm

- - - - -
18143808 by Ben Gamari at 2022-12-16T06:12:43-05:00
rts: Use fences instead of explicit barriers

- - - - -
39fe825e by Ben Gamari at 2022-12-16T06:12:43-05:00
rts/stm: Fix memory ordering in readTVarIO#

See #22421.

- - - - -
e01a8a94 by Ben Gamari at 2022-12-16T06:12:43-05:00
Improve heap memory barrier Note

Also introduce MUT_FIELD marker in Closures.h to document mutable
fields.

- - - - -
6e02c4ec by Ben Gamari at 2022-12-16T06:12:44-05:00
rts: Introduce getNumCapabilities

And ensure accesses to n_capabilities are atomic (although with relaxed
ordering). This is necessary as RTS API callers may concurrently call
into the RTS without holding a capability.

- - - - -
f91c2f26 by Ben Gamari at 2022-12-16T06:12:44-05:00
ghc: Fix data race in dump file handling

Previously the dump filename cache would use a non-atomic update which
could potentially result in lost dump contents. Note that this is still
a bit racy since the first writer may lag behind a later appending
writer.

- - - - -
9bcda308 by Ben Gamari at 2022-12-16T06:12:44-05:00
rts: Always use atomics for context_switch and interrupt

Since these are modified by the timer handler.

- - - - -
fc7b4287 by Ben Gamari at 2022-12-16T06:12:44-05:00
rts/Timer: Always use atomic operations

As noted in #22447, the existence of the pthread-based ITimer
implementation means that we cannot assume that the program is
single-threaded.

- - - - -
1e31c9eb by Ben Gamari at 2022-12-16T06:12:44-05:00
rts: Encapsulate recent_activity access

This makes it easier to ensure that it is accessed using the necessary
atomic operations.

- - - - -
c3d2b48d by Ben Gamari at 2022-12-16T06:12:44-05:00
rts: Encapsulate access to capabilities array

- - - - -
2e858f3c by Ben Gamari at 2022-12-16T06:12:44-05:00
rts: Encapsulate sched_state

- - - - -
7e9ccf94 by Ben Gamari at 2022-12-16T06:12:44-05:00
PrimOps: Fix benign MutVar race

Relaxed ordering is fine here since the later CAS implies a release.

- - - - -
7ca263d0 by Ben Gamari at 2022-12-16T06:12:44-05:00
rts: Style fix

- - - - -
fd732f12 by Ben Gamari at 2022-12-16T06:12:44-05:00
compiler: Use release store in eager blackholing

- - - - -
f1023b96 by Ben Gamari at 2022-12-16T06:12:44-05:00
rts: Fix ordering of makeStableName

- - - - -
1811383f by Ben Gamari at 2022-12-16T06:12:44-05:00
rts: Use ordered accesses instead of explicit barriers

- - - - -
8468cf75 by Ben Gamari at 2022-12-16T06:12:44-05:00
rts: Statically allocate capabilities

This is a rather simplistic way of solving #17289.

- - - - -
87f937a8 by Ben Gamari at 2022-12-16T06:12:44-05:00
rts: Ensure that all accesses to pending_sync are atomic

- - - - -
62b54954 by Ben Gamari at 2022-12-16T06:12:44-05:00
rts: Note race with wakeBlockingQueue

- - - - -
b1357257 by Bodigrim at 2022-12-16T06:12:46-05:00
Bump submodule directory to 1.3.8.0 and hpc to HEAD

- - - - -
4532ce99 by Bodigrim at 2022-12-16T06:12:46-05:00
Accept allocations increase on Windows

This is because of `filepath-1.4.100.0` and AFPP, causing increasing round-trips
between lists and ByteArray. See #22625 for discussion.

Metric Increase:
    MultiComponentModules
    MultiComponentModulesRecomp
    MultiLayerModules
    MultiLayerModulesRecomp
    T10421
    T10547
    T12150
    T12227
    T12234
    T12425
    T13035
    T13253
    T13253-spj
    T13701
    T13719
    T15703
    T16875
    T18140
    T18282
    T18304
    T18698a
    T18698b
    T18923
    T20049
    T21839c
    T21839r
    T5837
    T6048
    T9198
    T9961
    TcPlugin_RewritePerf
    hard_hole_fits

- - - - -


30 changed files:

- compiler/GHC/StgToCmm/Bind.hs
- compiler/GHC/Utils/Logger.hs
- libraries/directory
- libraries/hpc
- rts/Apply.cmm
- rts/Capability.c
- rts/Capability.h
- rts/HeapStackCheck.cmm
- rts/IOManager.c
- rts/Messages.c
- rts/Messages.h
- rts/PrimOps.cmm
- rts/Printer.c
- rts/ProfHeap.c
- rts/ProfilerReport.c
- rts/ProfilerReportJson.c
- rts/Profiling.c
- rts/Proftimer.c
- rts/RetainerProfile.c
- rts/RtsAPI.c
- rts/RtsStartup.c
- rts/SMPClosureOps.h
- rts/STM.c
- rts/Schedule.c
- rts/Schedule.h
- rts/Stats.c
- rts/StgMiscClosures.cmm
- rts/Task.c
- rts/ThreadPaused.c
- rts/Threads.c


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/595b1d349aeb68b99b2a37cf53af4abb78a30f03...4532ce9979159c8347b58bf7b8924900f3dfbfd2

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/595b1d349aeb68b99b2a37cf53af4abb78a30f03...4532ce9979159c8347b58bf7b8924900f3dfbfd2
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221216/5edd16e9/attachment-0001.html>


More information about the ghc-commits mailing list