Comments (1)
Hi,
This works as intended by design.
In order for the threads to collaborate wrt garbage collection, when a collection is required we will wait for all the threads to be ready until we start marking and collecting. This means that we might wait for some thread if he's in a long calculus and does not perform any memory allocation. You can add some regular calls that will do hl_blocking() calls to prevent this from happening, I think for instance Sys.sleep(0) should work.
Hope that helps
from hashlink.
Related Issues (20)
- Evaluate Profile-Guided Optimization (PGO)
- Maps are slow in hashlink HOT 1
- Failed to run on openSUSE HOT 2
- sys.FileStat.ctime is not accurate on Linux/macOS
- NDK version for android?
- `brew install hashlink` fails on Mac M1 HOT 2
- [hl/c] stack capture implementation for unix HOT 3
- Which and when should I use `cmake` or `make` to build HashLink? HOT 1
- compile fails: "error: unknown FP unit 'sse'" HOT 2
- Linking to libopenal.a causes duplicated symbol error
- Recent change breaks hashlink builds. HOT 3
- macOS libhl.dylib path causes crash HOT 1
- The Hashlink profiler causes an exception in Process.stdout.readLine
- Get live objects from a specific type
- JIT ERROR 0 mixing hl.UI8 and Float HOT 2
- Explicit constant Float to Int type conversion HOT 1
- Game controller not recognized HOT 10
- --debug is faster to run than non debug. HOT 2
- HL thread hangs when using trace() and semaphores HOT 2
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 hashlink.