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

qmonnet / rbpf / 11574889741
96%

Build:
DEFAULT BRANCH: main
Ran 29 Oct 2024 01:30PM UTC
Jobs 1
Files 11
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 Oct 2024 01:28PM UTC coverage: 95.29% (-0.1%) from 95.395%
11574889741

push

github

qmonnet
feat: Reduce dependency on libc

I am attempting to reduce the dependence on libc in my indirect
dependencies. While looking at this crate I noticed some low-hanging
fruit that can be very easily replaced with libc.

- The rand() function can be re-implemented as a simple Wyrand seeded by
  the thread ID and the current time.
- libc::memcpy is used at a point where it can be replaced with
  ptr::copy_nonoverlapping.
- libc is used for memory allocation at a point where std::alloc can be
  used instead. So I use this.

I'm not too familiar with this codebase, so if any of these replacements
are incorrect, please let me know.

The only leftover libc call is mprotect().

Signed-off-by: John Nunley <dev@notgull.net>

18 of 26 new or added lines in 2 files covered. (69.23%)

4168 of 4374 relevant lines covered (95.29%)

240.18 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
96.31
-0.11% src/jit.rs
7
53.13
-3.54% src/helpers.rs
Jobs
ID Job ID Ran Files Coverage
1 11574889741.1 29 Oct 2024 01:30PM UTC 11
95.29
GitHub Action Run
Source Files on build 11574889741
  • Tree
  • List 11
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 404ccd09 on github
  • Prev Build on main (#11574621665)
  • Next Build on main (#11574976820)
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

© 2026 Coveralls, Inc