-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Replace zeroing-on-drop with filling-on-drop. #23535
Commits on Mar 26, 2015
-
Switch drop-flag to
u8
to allow special tags to instrument state.Refactored code so that the drop-flag values for initialized (`DTOR_NEEDED`) versus dropped (`DTOR_DONE`) are given explicit names. Add `mem::dropped()` (which with `DTOR_DONE == 0` is semantically the same as `mem::zeroed`, but the point is that it abstracts away from the particular choice of value for `DTOR_DONE`). Filling-drop needs to use something other than `ptr::read_and_zero`, so I added such a function: `ptr::read_and_drop`. But, libraries should not use it if they can otherwise avoid it. Fixes to tests to accommodate filling-drop.
Configuration menu - View commit details
-
Copy full SHA for 3902190 - Browse repository at this point
Copy the full SHA 3902190View commit details -
Regression tests for issues uncovered only post the run-pass and comp…
…ile-fail tests. (I.e. the idea being, lets catch errors in these basic constructs sometime *before* we start doing the doc tests.)
Configuration menu - View commit details
-
Copy full SHA for 7c671e5 - Browse repository at this point
Copy the full SHA 7c671e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bc35b1 - Browse repository at this point
Copy the full SHA 5bc35b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5733726 - Browse repository at this point
Copy the full SHA 5733726View commit details -
Added instability markers to
POST_DROP_*
consts, and related opt-in's.(Reviewed rest of code; did not see other `pub` items that needed such treatment.) Driveby: fix typo in comment in ptr.rs.
Configuration menu - View commit details
-
Copy full SHA for 601eca3 - Browse repository at this point
Copy the full SHA 601eca3View commit details -
Use
-Z force-dropflag-checks=on/off
for emitting sanity-check.(That is, added config and debugflag a la check-overflow but for drop flag sanity-check.) Remove now-unused import of NoDebugInfo from trans::glue.
Configuration menu - View commit details
-
Copy full SHA for 4053b00 - Browse repository at this point
Copy the full SHA 4053b00View commit details -
Configuration menu - View commit details
-
Copy full SHA for aab4bef - Browse repository at this point
Copy the full SHA aab4befView commit details -
Configuration menu - View commit details
-
Copy full SHA for e2cc8b1 - Browse repository at this point
Copy the full SHA e2cc8b1View commit details
Commits on Mar 27, 2015
-
Configuration menu - View commit details
-
Copy full SHA for b68ca84 - Browse repository at this point
Copy the full SHA b68ca84View commit details