From: hongzhidao Date: Sat, 16 Feb 2019 15:18:43 +0000 (+0800) Subject: Fixed fast paths. X-Git-Tag: 0.2.8~14 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=b561b50e397fa20f2580c7744512e843c132867d;p=njs.git Fixed fast paths. --- diff --git a/njs/njs_variable.c b/njs/njs_variable.c index 536722aa..d3b8e2b4 100644 --- a/njs/njs_variable.c +++ b/njs/njs_variable.c @@ -144,7 +144,7 @@ njs_variable_reference(njs_vm_t *vm, njs_parser_scope_t *scope, ret = nxt_lvlhsh_insert(&scope->references, &lhq); - if (nxt_slow_path(ret != NXT_ERROR)) { + if (nxt_fast_path(ret != NXT_ERROR)) { ret = NXT_OK; } } @@ -493,7 +493,7 @@ njs_name_copy(njs_vm_t *vm, nxt_str_t *dst, nxt_str_t *src) dst->start = nxt_mp_alloc(vm->mem_pool, src->length); - if (nxt_slow_path(dst->start != NULL)) { + if (nxt_fast_path(dst->start != NULL)) { (void) memcpy(dst->start, src->start, src->length); return NXT_OK;