From 96d6873390bd25fb4c2ed4cd460f341b6ad83d32 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 6 Apr 2024 11:58:35 -0700 Subject: [PATCH] Add demonstration comment --- src/execution_engine.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/execution_engine.rs b/src/execution_engine.rs index 183431a0aed..dc2db8fdf7e 100644 --- a/src/execution_engine.rs +++ b/src/execution_engine.rs @@ -484,8 +484,11 @@ impl Deref for ExecEngineInner { /// to doesn't accidentally outlive its execution engine. #[derive(Clone)] pub struct JitFunction { - _execution_engine: ExecEngineInner, inner: F, + _execution_engine: ExecEngineInner, + // This needs some thread safe way to ensure the Context doesn't get dropped. + // The following doesn't work, and is just for demonstration purposes: + _context: Arc, } impl JitFunction {