We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 801b5a5 commit 7961cb0Copy full SHA for 7961cb0
1 file changed
a86/interp.rkt
@@ -99,6 +99,10 @@
99
(define current-externs
100
(make-parameter '()))
101
102
+(define jit-no-unload?
103
+ (let ([v (getenv "A86_JIT_NO_UNLOAD")])
104
+ (and v (not (member (string-downcase v) '("0" "false" "no" ""))))))
105
+
106
(define current-objects
107
108
@@ -232,8 +236,11 @@
232
236
(define (asm-unload p)
233
237
(define raw (asm-program-ptr p))
234
238
(when raw
235
- (jit-unload raw)
- (set-asm-program-ptr! p #f)))
239
+ (if jit-no-unload?
240
+ (jit-trace "skip unload due to A86_JIT_NO_UNLOAD")
241
+ (begin
242
+ (jit-unload raw)
243
+ (set-asm-program-ptr! p #f)))))
244
245
(define (call-with-asm-loaded prog f
246
#:externs [externs (current-externs)]
0 commit comments