[njs] Improved setting vm->trace.
Dmitry Volyntsev
xeioex at nginx.com
Tue Jan 22 15:09:08 UTC 2019
details: https://hg.nginx.org/njs/rev/11cfd1d486f7
branches:
changeset: 735:11cfd1d486f7
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Tue Jan 22 18:08:47 2019 +0300
description:
Improved setting vm->trace.
diffstat:
njs/njs.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diffs (23 lines):
diff -r 0813395557b6 -r 11cfd1d486f7 njs/njs.c
--- a/njs/njs.c Fri Jan 18 15:28:17 2019 +0300
+++ b/njs/njs.c Tue Jan 22 18:08:47 2019 +0300
@@ -335,6 +335,7 @@ njs_vm_clone(njs_vm_t *vm, njs_external_
nvm->mem_cache_pool = nmcp;
nvm->shared = vm->shared;
+ nvm->trace = vm->trace;
nvm->variables_hash = vm->variables_hash;
nvm->values_hash = vm->values_hash;
@@ -444,11 +445,6 @@ njs_vm_init(njs_vm_t *vm)
vm->backtrace = backtrace;
}
- vm->trace.level = NXT_LEVEL_TRACE;
- vm->trace.size = 2048;
- vm->trace.handler = njs_parser_trace_handler;
- vm->trace.data = vm;
-
if (njs_is_null(&vm->retval)) {
vm->retval = njs_value_void;
}
More information about the nginx-devel
mailing list