Print gc worker hello if VERBOSE

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