Tony Arcieri 🌹🦀's latest activity
@tenderlove @thisismissem if I understand how RB_GC_GUARD works, you could probably build something similar in Rust using a RAII wrapper/"smart pointer" placed around the VALUE's pointer and having it perform a `core::ptr::volatile_read` in the `Drop` handler, which would ensure it lives on the stack until dropped
…See more
@tenderlove @thisismissem if I understand how RB_GC_GUARD works, you could probably build something similar in Rust using a RAII wrapper/"smart pointer" placed around the VALUE's pointer and having it perform a `core::ptr::volatile_read` in the `Drop` handler, which would ensure it lives on the stack until dropped
See less
@tenderlove @thisismissem if I understand how RB_GC_GUARD works, you could probably build something similar in Rust using a RAII wrapper/"smart pointer" placed around the VALUE's pointer and having it perform a `core::ptr::volatile_read` in the `Drop` handler, which would ensure it lives on the stack until dropped
@tenderlove @thisismissem if I understand how RB_GC_GUARD works, you could probably build something similar in Rust using a RAII wrapper/"smart pointer" placed around the VALUE's pointer and having it perform a `core::ptr::volatile_read` in the `Drop` handler, which would ensure it lives on the stack until dropped