Print gc worker hello if VERBOSE

上级 67597251
...@@ -260,6 +260,7 @@ gc_worker(void *x) ...@@ -260,6 +260,7 @@ gc_worker(void *x)
{ {
struct spinlock wl; struct spinlock wl;
if (VERBOSE)
cprintf("gc_worker: %d\n", mycpu()->id); cprintf("gc_worker: %d\n", mycpu()->id);
initlock(&wl, "rcu_gc_worker dummy"); // dummy lock initlock(&wl, "rcu_gc_worker dummy"); // dummy lock
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论