------------------------------------------------------------------------- */
typedef struct step_workspace_ {
- step * stp; // the step for this workspace
+ step * step; // the step for this workspace
struct gc_thread_ * gct; // the gc_thread that contains this workspace
- // block that is currently being scanned
- bdescr * scan_bd;
- StgPtr scan; // the scan pointer
-
// where objects to be scavenged go
bdescr * todo_bd;
StgPtr todo_free; // free ptr for todo_bd
// where large objects to be scavenged go
bdescr * todo_large_objects;
- // Objects that need not be, or have already been, scavenged.
+ // Objects that have already been, scavenged.
bdescr * scavd_list;
- lnat n_scavd_blocks; // count of blocks in this list
+ nat n_scavd_blocks; // count of blocks in this list
+
+ // Partially-full, scavenged, blocks
+ bdescr * part_list;
+ unsigned int n_part_blocks; // count of above
} step_workspace;
StgClosure* static_objects; // live static objects
StgClosure* scavenged_static_objects; // static objects scavenged so far
- lnat gc_count; // number of gc's this thread has done
+ lnat gc_count; // number of GCs this thread has done
+
+ // block that is currently being scanned
+ bdescr * scan_bd;
// --------------------
// evacuate flags
// variable).
rtsBool failed_to_evac; // failure to evacuate an object typically
- // causes it to be recorded in the mutable
+ // Causes it to be recorded in the mutable
// object list
rtsBool eager_promotion; // forces promotion to the evac gen
// stats
lnat copied;
+ lnat scanned;
lnat any_work;
lnat no_work;
lnat scav_find_work;
StgClosure * isAlive(StgClosure *p);
+#define WORK_UNIT_WORDS 128
+
#endif /* GC_H */