javierhonduco / lightswitch

CPU profiler for Linux written in Rust
MIT License
7 stars 3 forks source link

object: Improve correctness #105

Closed javierhonduco closed 2 weeks ago

javierhonduco commented 2 weeks ago

object: Improve correctness Due to the fact that object::File takes a reference to the mmap-ed file, we needed to do some awful lifetime hacks to fit it in the API we wanted. While getting rid of the raw pointer and drop impl, Ricardo noticed that there was some lurking UB too, so this fixes it as well.

Co-authored-by: Ricardo Delfin me@rdelfin.com

Test Plan

CI