[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14511: Unexpected behaviour of scm_gc+sleep/usleep in another thread
From: |
Ludovic Courtès |
Subject: |
bug#14511: Unexpected behaviour of scm_gc+sleep/usleep in another thread |
Date: |
Tue, 04 Jun 2013 14:49:19 +0200 |
User-agent: |
Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) |
Panicz Maciej Godek <address@hidden> skribis:
> I've noticed that when a thread is asleep and (gc) or scm_gc() is called,
> it gets awoken. It can be demonstrated with the following example:
>
>> (call-with-new-thread
> (lambda()
> (while #t
> (display "tick!\n")
> (sleep 5)))) ;; <= this is 5 seconds!
>
>> (gc)
> tick! ;; this happens immediately after each call to gc!
I can’t reproduce it with current ‘stable-2.0’ and ‘master’, on
x86_64-linux-gnu, with libgc 7.2alpha6 (which is ancient).
Could you provide more info about your system and dependency versions?
TIA,
Ludo’.
- bug#14511: Unexpected behaviour of scm_gc+sleep/usleep in another thread,
Ludovic Courtès <=