-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unsafe code guidelines for hw1? #14
Comments
ART is a pointer-based data structure, and in my opinion, you cannot avoid unsafe blocks altogether. I'd recommend you avoid unsafe blocks as much as possible, but you don't need to eradicate them. I'd also recommend you debug your program with CLion or VSCode. |
I believe we should use |
While it is generally advisable to use |
oh that's right. I guess I mixed this up with something unrelated. |
While implementing ART I ran into several cases where I had to use unsafe codes like raw ptr deref,
std::ptr::
functions, andNow I'm getting use-after-free errors so I decided to clean things up. But I'm still not sure how much unsafety we need in this HW.
The text was updated successfully, but these errors were encountered: