We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 786551e commit 306f587Copy full SHA for 306f587
crates/vm/src/stdlib/gc.rs
@@ -80,15 +80,14 @@ mod gc {
80
}
81
82
/// Return the current collection thresholds as a tuple.
83
- /// The third value is always 0.
84
#[pyfunction]
85
fn get_threshold(vm: &VirtualMachine) -> PyObjectRef {
86
- let (t0, t1, _t2) = gc_state::gc_state().get_threshold();
+ let (t0, t1, t2) = gc_state::gc_state().get_threshold();
87
vm.ctx
88
.new_tuple(vec![
89
vm.ctx.new_int(t0).into(),
90
vm.ctx.new_int(t1).into(),
91
- vm.ctx.new_int(0).into(),
+ vm.ctx.new_int(t2).into(),
92
])
93
.into()
94
0 commit comments