epoll: Set up the alarm_evq at init time
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 28 Sep 2016 16:21:01 +0000 (12:21 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 6 Oct 2016 19:41:48 +0000 (15:41 -0400)
commit8cf0781cb9d963bade09bf828510c4d19bb4c85f
tree5a17ac260b582b66c2e146174ff68d12712143d3
parent7496182148767950626496f2cb4f5bdf34a435ce
epoll: Set up the alarm_evq at init time

This way we don't need to alloc and free it repeatedly for timeouts.  The
main benefit for this now is that we actually leak memory when we free the
evqs in epoll.c (grep TODO.*INDIR).  This prevents long-running processes
from eventually running out of memory.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/iplib/epoll.c