We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c10579 commit e1bafceCopy full SHA for e1bafce
vm/src/vm.rs
@@ -66,7 +66,7 @@ pub struct VirtualMachine {
66
pub trace_func: RefCell<PyObjectRef>,
67
pub use_tracing: Cell<bool>,
68
pub recursion_limit: Cell<usize>,
69
- pub signal_handlers: Option<RefCell<[PyObjectRef; NSIG]>>,
+ pub signal_handlers: Option<Box<RefCell<[PyObjectRef; NSIG]>>>,
70
pub state: Arc<PyGlobalState>,
71
pub initialized: bool,
72
}
@@ -201,7 +201,7 @@ impl VirtualMachine {
201
trace_func,
202
use_tracing: Cell::new(false),
203
recursion_limit: Cell::new(if cfg!(debug_assertions) { 256 } else { 512 }),
204
- signal_handlers: Some(signal_handlers),
+ signal_handlers: Some(Box::new(signal_handlers)),
205
state: Arc::new(PyGlobalState {
206
settings,
207
stdlib_inits,
0 commit comments