Comments (3)
I tested it on 64-bit Linux, the code work as expected and didn't block.
from chezscheme.
I believe the problem is that the WIN32 definition of s_ee_read_char
in expeditor.c
is not deactivating the thread before calling (and possibly blocking on) ReadConsoleInput
. When the background thread, which is busily creating and dropping bignums once i gets out of fixnum range, detects it's time to do a collection, the blocked but still active main thread prevents the collection from occurring, effectively blocking the background thread as well. You can verify this is the problem by setting collect-notify to #t
and seeing if collections stop after a while. Or you can go ahead and insert calls to deactivate_thread
and reactivate_thread
around the call to ReadConsoleInput
(following the pattern in the non-WIN32 definition of s_ee_read_char
) and see if that fixes the problem.
In the 64-bit version, i wouldn't have exceeded the fixnum range in your test (assuming no time travel), so no bignums were allocated, and no collections were needed.
from chezscheme.
@dybvig I have modified the code according to your words and recompiled it, and it seems the problem do not occurs anymore.
from chezscheme.
Related Issues (20)
- Why is `main.o` installed? HOT 3
- Bug in fixnum arithmetic HOT 1
- bytevector-reference-ref & set! fail to correctly check size of bytevectors smaller than ptr-bytes - 1 HOT 1
- Warnings from GCC `-fanalyzer`
- new RNG is very broken HOT 4
- chezscheme 10 cannot be built from tarball HOT 1
- Non-tail calls to errorf sometimes treated as tail calls with debug-level 2 HOT 5
- weird cond expansion HOT 8
- a few questions regarding packaging chez-scheme HOT 6
- [PATCH] Update user's guide link in README HOT 1
- Bug in V format prefix parameter HOT 1
- native eol style HOT 4
- error: use of unknown builtin '__builtin_add_overflow' HOT 1
- How to cross compile on macOS for a different macOS architecture HOT 3
- Build fails if I set CC_FOR_BUILD HOT 1
- set! creates new bindings HOT 3
- Build/Embed Chez Scheme with larger C/C++ program HOT 3
- Unexpected result using conditional procedure and set! HOT 2
- Mysterious invalid syntax when building transformer output with `quote-syntax`
- Primitive macro matching procedure application? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chezscheme.