• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / luajit / 8093905485
70%
tarantool/master: 93%

Build:
Build:
LAST BUILD BRANCH: skaplun/luajit-performance-tests
DEFAULT BRANCH: tarantool/master
Ran 29 Feb 2024 09:45AM UTC
Jobs 1
Files 89
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Feb 2024 09:24AM UTC coverage: 92.559% (+0.01%) from 92.549%
8093905485

push

github

Buristan
Fix C file generation in jit.bcsave.

Thanks to codicodi.

(cherry picked from commit 62903bacf)

LuaJIT allows exporting bytecode to a C file using the option `-b`, see
[1]. For building a generated C file in C++ projects, C file uses a
macro `__cplusplus` [2], but this macro was broken by the commit
a9dd47b7f ("Extend -b to generate
c/h/obj/o files with embedded bytecode."). With this breakage, C/C++
compiler removes the definition of an array with the bytecode, and the
resulted object file misses a symbol with the bytecode.

The patch fixes the broken macro.

Note, test test/lua-Harness-tests/411-luajit.t checks the presence of
the macro `__cplusplus` in the generated C file, however, it doesn't
catch the bug.

Sergey Bronnikov:
* added the description and the test for the problem

Part of tarantool/tarantool#9595

1. https://luajit.org/running.html
2. https://en.cppreference.com/w/cpp/preprocessor/replace

Reviewed-by: Sergey Kaplun <skaplun@tarantool.org>
Reviewed-by: Igor Munkin <imun@tarantool.org>
Signed-off-by: Sergey Kaplun <skaplun@tarantool.org>
(cherry picked from commit 593508cf4)

5638 of 5996 branches covered (94.03%)

Branch coverage included in aggregate %.

21493 of 23316 relevant lines covered (92.18%)

773358.96 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
96.55
-0.08% src/lj_asm.c
2
87.1
-0.17% src/lj_crecord.c
Jobs
ID Job ID Ran Files Coverage
1 8093905485.1 29 Feb 2024 09:45AM UTC 89
92.56
GitHub Action Run
Source Files on build 8093905485
  • Tree
  • List 89
  • Changed 88
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #8093905485
  • 8b4214bc on github
  • Prev Build on tarantool/release/2.11 (#8062004226)
  • Next Build on tarantool/release/2.11 (#8248340224)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc