[Tarantool-patches] [PATCH v2 luajit 43/45] test: enable <misc/wbarrier_jit.lua> LuaJIT test

Sergey Bronnikov sergeyb at tarantool.org
Thu Aug 22 17:52:09 MSK 2024


Sergey,

On 21.08.2024 11:58, Sergey Kaplun wrote:
> This patch moves the aforementioned test from the <misc> to the <trace/>
> directory, includes it in <index>, and names the subtests.
>
> Part of tarantool/tarantool#9398
> ---
thanks for the patch! LGTM
>   test/LuaJIT-tests/misc/wbarrier_jit.lua | 18 ------------------
>   test/LuaJIT-tests/trace/index           |  1 +
>   test/LuaJIT-tests/trace/wbarrier.lua    | 16 ++++++++++++++++
>   3 files changed, 17 insertions(+), 18 deletions(-)
>   delete mode 100644 test/LuaJIT-tests/misc/wbarrier_jit.lua
>   create mode 100644 test/LuaJIT-tests/trace/wbarrier.lua
>
> diff --git a/test/LuaJIT-tests/misc/wbarrier_jit.lua b/test/LuaJIT-tests/misc/wbarrier_jit.lua
> deleted file mode 100644
> index 2c8dd7fb..00000000
> --- a/test/LuaJIT-tests/misc/wbarrier_jit.lua
> +++ /dev/null
> @@ -1,18 +0,0 @@
> -
> -do
> -  local t = {[0]={}}
> -  for i=1,1e5 do t[i] = {t[i-1]} end
> -  for i=1,1e5 do assert(t[i][1] == t[i-1]) end
> -end
> -
> -do
> -  local f
> -  do
> -    local x = 0
> -    function f()
> -      for i=1,1e5 do x = {i} end
> -    end
> -  end
> -  f()
> -end
> -
> diff --git a/test/LuaJIT-tests/trace/index b/test/LuaJIT-tests/trace/index
> index c7fbbe57..5e1c4c2e 100644
> --- a/test/LuaJIT-tests/trace/index
> +++ b/test/LuaJIT-tests/trace/index
> @@ -13,3 +13,4 @@ stitch.lua
>   tcall_base.lua
>   tcall_loop.lua
>   unordered_jit.lua
> +wbarrier.lua
> diff --git a/test/LuaJIT-tests/trace/wbarrier.lua b/test/LuaJIT-tests/trace/wbarrier.lua
> new file mode 100644
> index 00000000..625c0ff2
> --- /dev/null
> +++ b/test/LuaJIT-tests/trace/wbarrier.lua
> @@ -0,0 +1,16 @@
> +do --- TBAR for HSTORE.
> +  local t = {[0]={}}
> +  for i = 1, 1e5 do t[i] = {t[i - 1]} end
> +  for i = 1, 1e5 do assert(t[i][1] == t[i - 1]) end
> +end
> +
> +do --- OBAR for USTORE.
> +  local f
> +  do
> +    local x = 0
> +    function f()
> +      for i = 1, 1e5 do x = {i} end
> +    end
> +  end
> +  f()
> +end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.tarantool.org/pipermail/tarantool-patches/attachments/20240822/457090b9/attachment.htm>


More information about the Tarantool-patches mailing list