<!DOCTYPE html>
<html data-lt-installed="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body style="padding-bottom: 1px;">
<p>Sergey,<br>
</p>
<div class="moz-cite-prefix">On 21.08.2024 11:58, Sergey Kaplun
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:f7aa558b567089931443a02aa18f5b87c7878dbc.1724228998.git.skaplun@tarantool.org">
<pre class="moz-quote-pre" wrap="">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
---</pre>
</blockquote>
thanks for the patch! LGTM<br>
<blockquote type="cite"
cite="mid:f7aa558b567089931443a02aa18f5b87c7878dbc.1724228998.git.skaplun@tarantool.org">
<pre class="moz-quote-pre" wrap="">
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
</pre>
</blockquote>
</body>
<lt-container></lt-container>
</html>