forked from LuaJIT/LuaJIT
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: enable <misc/wbarrier_jit.lua> LuaJIT test
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
- Loading branch information
Showing
3 changed files
with
17 additions
and
18 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ stitch.lua | |
tcall_base.lua | ||
tcall_loop.lua | ||
unordered_jit.lua | ||
wbarrier.lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |