Skip to content

add an experimental tag for Gc<T> due to cycles #11543

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

Merged
merged 1 commit into from
Jan 15, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/libstd/gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ collector is task-local so `Gc<T>` is not sendable.

*/

#[allow(experimental)];

use kinds::Send;
use clone::{Clone, DeepClone};
use managed;
Expand All @@ -24,6 +26,9 @@ use managed;
#[lang="gc"]
#[cfg(not(test))]
#[no_send]
#[experimental = "Gc is currently based on reference-counting and will not collect cycles until \
task annihilation. For now, cycles need to be broken manually by using `Rc<T>` \
with a non-owning `Weak<T>` pointer. A tracing garbage collector is planned."]
pub struct Gc<T> {
priv ptr: @T
}
Expand Down