Commit 1a78b802 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Ditch aborted stack-space monitoring code.

parent 72648a74
......@@ -288,9 +288,6 @@ struct worker {
unsigned cur_method;
unsigned seen_methods;
unsigned handling;
uintptr_t stack_start;
uintptr_t stack_end;
};
/* Stored object -----------------------------------------------------
......
......@@ -318,8 +318,6 @@ pan_wrk(struct vsb *vsb, const struct worker *wrk)
return;
VSB_indent(vsb, 2);
PAN_CheckMagic(vsb, wrk, WORKER_MAGIC);
VSB_printf(vsb, "stack = {0x%jx -> 0x%jx},\n",
(uintmax_t)wrk->stack_start, (uintmax_t)wrk->stack_end);
pan_ws(vsb, wrk->aws);
m = wrk->cur_method;
......
......@@ -99,7 +99,6 @@ WRK_Thread(struct pool *qp, size_t stacksize, unsigned thread_workspace)
struct worker *w, ww;
struct VSC_main ds;
unsigned char ws[thread_workspace];
uintptr_t u;
AN(qp);
AN(stacksize);
......@@ -115,14 +114,6 @@ WRK_Thread(struct pool *qp, size_t stacksize, unsigned thread_workspace)
WS_Init(w->aws, "wrk", ws, thread_workspace);
u = getpagesize();
AN(u);
u -= 1U;
w->stack_start = (((uintptr_t)&qp) + u) & ~u;
/* XXX: assuming stack grows down. */
w->stack_end = w->stack_start - stacksize;
VSL(SLT_WorkThread, 0, "%p start", w);
Pool_Work_Thread(qp, w);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment