Repo Added
|
Files
89
|
Badge
Embed ▾
README BADGES
|
push
github
Fix compilation of getmetatable() for UDTYPE_IO_FILE The patch fixes a problem with recording `getmetatable()` for an I/O object: recording the `getmetatable` call with file descriptors represented by userdata object `UDTYPE_IO_FILE` (like `io.stdout`) leads to violation of assertion in `rec_check_slots`. Note, the problem was fixed upstream in different manner, see commit 5141cbc20 ("Fix compiliation of getmetatable() for UDTYPE_IO_FILE."). Note, the specialization omits the check of `__metatable` field precense and the check for the metatable itself. So, if we change the metatable on the object after the trace is compiled, the trace becomes invalid. The proposed test demonstrates these cases as well.
5695 of 6033 branches covered (94.4%)
Branch coverage included in aggregate %.
1 of 1 new or added line in 1 file covered. (100.0%)
18 existing lines in 5 files now uncovered.21715 of 23449 relevant lines covered (92.61%)
2967283.49 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|