Commit bba87ed2 authored by Geoff Simmons's avatar Geoff Simmons

get rid of the debugging code for ws allocations via pcre2 general contexts

parent 99636168
...@@ -125,22 +125,12 @@ event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e) ...@@ -125,22 +125,12 @@ event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
static void * static void *
ws_malloc(PCRE2_SIZE sz, void *ws) ws_malloc(PCRE2_SIZE sz, void *ws)
{ {
void *p; return WS_Alloc(ws, sz);
VSL(SLT_Debug, 0, "sz = %zu, ws = %p", sz, ws);
WS_Assert(ws);
VSL(SLT_Debug, 0, "WS_Asserted");
//return WS_Alloc(ws, sz);
p = WS_Alloc(ws, sz);
VSL(SLT_Debug, 0, "WS_Alloced %p", p);
return p;
} }
static void static void
ws_free(void *ptr, void *ws) ws_free(void *ptr, void *ws)
{ {
VSL(SLT_Debug, 0, "free ptr = %p, ws = %p", ptr, ws);
WS_Assert(ws);
WS_Assert_Allocated(ws, ptr, 0); WS_Assert_Allocated(ws, ptr, 0);
} }
...@@ -399,8 +389,6 @@ vmod_regex_match(VRT_CTX, struct vmod_pcre2_regex *regex, ...@@ -399,8 +389,6 @@ vmod_regex_match(VRT_CTX, struct vmod_pcre2_regex *regex,
* allocator. * allocator.
*/ */
if (gctx_task->priv == NULL) { if (gctx_task->priv == NULL) {
VSLb(ctx->vsl, SLT_Debug, "ws_malloc = %p, ws_free = %p",
ws_malloc, ws_free);
gctx = pcre2_general_context_create(ws_malloc, ws_free, gctx = pcre2_general_context_create(ws_malloc, ws_free,
ctx->ws); ctx->ws);
if (gctx == NULL) { if (gctx == NULL) {
......
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