_M.tablepool_fetch = function()

in lib/skywalking/util.lua [165:183]


    _M.tablepool_fetch = function(name, narr, nrec)
        narr = narr or 8
        nrec = nrec or 8
        name = name or "sw_default_tab"

        local sw_tab_pool = ngx.ctx.sw_tab_pool
        if not sw_tab_pool then
            sw_tab_pool = tablepool.fetch("sw_tab_pool", 128, 0)
            insert_tab(sw_tab_pool, "sw_tab_pool")
            insert_tab(sw_tab_pool, sw_tab_pool)

            ngx.ctx.sw_tab_pool = sw_tab_pool
        end

        local tab = tablepool.fetch(name, narr, nrec)
        insert_tab(sw_tab_pool, name)
        insert_tab(sw_tab_pool, tab)
        return tab
    end