From: Matt Birkholz Date: Wed, 17 Jun 2015 02:20:31 +0000 (-0700) Subject: Unalias with-absolutely-no-interrupts in runtime/prgcop.scm. X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=9a2b5d817cb4593d18c9c9474bae7bcc6ffa0ded;p=mit-scheme.git Unalias with-absolutely-no-interrupts in runtime/prgcop.scm. It is not atomic in multiprocessing worlds. The alias "atomically" is no longer appropriate. --- diff --git a/src/runtime/prgcop.scm b/src/runtime/prgcop.scm index b065b7b92..42f129f32 100644 --- a/src/runtime/prgcop.scm +++ b/src/runtime/prgcop.scm @@ -135,7 +135,7 @@ USA. (define (%copy-compiled-code-address obj) (let ((new-block (copy-compiled-code-block (compiled-code-address->block obj)))) - (atomically + (with-absolutely-no-interrupts (lambda () (object-new-type (object-type obj) @@ -158,9 +158,6 @@ USA. ((not (fix:< i len))) (vector-set! new i (copy-object (vector-ref new i)))) typed)) - -(define-integrable (atomically thunk) - (with-absolutely-no-interrupts thunk)) (define ((%copy-pair type) obj) (%%copy-pair type obj))