-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Track initialised and uninitialised yk locations
Remove reallocarray in favour of calloc Change YkLocations to be stored as pointers Change lyk interface to reflect its "hooks" functionality Move tests to a separate test script and enabled serialised all.lua test suite Added logging in lyk module for ease of debugging Updated readme with debugging instructions
- Loading branch information
1 parent
56c5787
commit ff503eb
Showing
10 changed files
with
155 additions
and
59 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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,29 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
cd tests | ||
|
||
# YKFIXME: The JIT can't yet run the test suite, but the following commented | ||
# commands are what we are aiming at having work. | ||
# | ||
# ../src/lua -e"_U=true" all.lua | ||
# YKD_SERIALISE_COMPILATION=1 ../src/lua -e"_U=true" all.lua | ||
# | ||
# (Adding `YKD_SERIALISE_COMPILATION` exercises different threading behaviour | ||
# that could help to shake out more bugs) | ||
# | ||
# Until we can run `all.lua` reliably, we just run the tests that we know to | ||
# run within reasonable time). | ||
|
||
LUA=../src/lua | ||
|
||
# Non-serialised compilation tests | ||
# YKFIXME: The following tests are known to work with non-serialised JIT | ||
for test in api bwcoercion closure code events \ | ||
gengc pm tpack tracegc vararg goto cstack locals; do | ||
YKD_SERIALISE_COMPILATION=0 ${LUA} -e"_U=true" ${test}.lua | ||
done | ||
|
||
# Serialised compilation tests | ||
YKD_SERIALISE_COMPILATION=1 ${LUA} -e"_U=true" all.lua |