diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-05-02 06:37:14 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-05-05 08:29:27 +1000 |
commit | db9de7eb3e91820024f673bfdb6fb8064cfed20d (patch) | |
tree | 5e1c3ef0b6dee7f40fedbc118ba36cfe6ffdd1ee /rts/sm/GCThread.h | |
parent | ad4392c142696d5092533480a82ed65322e9d413 (diff) | |
download | haskell-db9de7eb3e91820024f673bfdb6fb8064cfed20d.tar.gz |
rts: Replace `nat` with `uint32_t`
The `nat` type was an alias for `unsigned int` with a comment saying
it was at least 32 bits. We keep the typedef in case client code is
using it but mark it as deprecated.
Test Plan: Validated on Linux, OS X and Windows
Reviewers: simonmar, austin, thomie, hvr, bgamari, hsyl20
Differential Revision: https://phabricator.haskell.org/D2166
Diffstat (limited to 'rts/sm/GCThread.h')
-rw-r--r-- | rts/sm/GCThread.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rts/sm/GCThread.h b/rts/sm/GCThread.h index 1fee7a68e9..b728315554 100644 --- a/rts/sm/GCThread.h +++ b/rts/sm/GCThread.h @@ -87,7 +87,7 @@ typedef struct gen_workspace_ { WSDeque * todo_q; bdescr * todo_overflow; - nat n_todo_overflow; + uint32_t n_todo_overflow; // where large objects to be scavenged go bdescr * todo_large_objects; @@ -126,7 +126,7 @@ typedef struct gc_thread_ { SpinLock mut_spin; volatile StgWord wakeup; // NB not StgWord8; only StgWord is guaranteed atomic #endif - nat thread_index; // a zero based index identifying the thread + uint32_t thread_index; // a zero based index identifying the thread rtsBool idle; // sitting out of this GC cycle bdescr * free_blocks; // a buffer of free blocks for this thread @@ -155,7 +155,7 @@ typedef struct gc_thread_ { // -------------------- // evacuate flags - nat evac_gen_no; // Youngest generation that objects + uint32_t evac_gen_no; // Youngest generation that objects // should be evacuated to in // evacuate(). (Logically an // argument to evacuate, but it's @@ -200,7 +200,7 @@ typedef struct gc_thread_ { } gc_thread; -extern nat n_gc_threads; +extern uint32_t n_gc_threads; extern gc_thread **gc_threads; |