提交 1a129849 创建 作者: Frans Kaashoek's avatar Frans Kaashoek

One gc thread moves a delay list to a tofree list

Each core's gc thread free elements on the tofree list
上级 cdaa456b
差异被折叠。
...@@ -23,7 +23,6 @@ struct stat; ...@@ -23,7 +23,6 @@ struct stat;
struct proc; struct proc;
struct vmap; struct vmap;
struct pipe; struct pipe;
struct gc;
// bio.c // bio.c
void binit(void); void binit(void);
......
...@@ -54,10 +54,8 @@ struct proc { ...@@ -54,10 +54,8 @@ struct proc {
SLIST_ENTRY(proc) child_next; SLIST_ENTRY(proc) child_next;
struct condvar cv; struct condvar cv;
u64 epoch; u64 epoch;
u64 ndelayed; struct spinlock gc_epoch_lock;
struct gc *gc_epoch; u64 epoch_depth;
struct spinlock gc_lock;
u64 rcu_read_depth;
char lockname[16]; char lockname[16];
int on_runq; int on_runq;
int cpu_pin; int cpu_pin;
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论