Skip to content

Commit

Permalink
CS: no large-allocation signal in non-main OS thread
Browse files Browse the repository at this point in the history
This problem was exposed by the "db" collection's OS-thread test.
  • Loading branch information
mflatt committed Jul 26, 2023
1 parent b13e917 commit 96100b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion racket/src/cs/rumble/memory.ss
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@
;; fast enough by regularly scheduled event checking because it's
;; allocated in large chunks
(when (>= (bytes-allocated 0) trigger-major-gc-allocated)
(set-timer 1)))))
(when (eqv? (place-thread-category) PLACE-MAIN-THREAD)
(set-timer 1))))))

(define (set-incremental-collection-enabled! on?)
(set! disable-incremental? (not on?)))
Expand Down

0 comments on commit 96100b2

Please sign in to comment.