haXe Forum > Neko thread leak memory
-
lazekiller Aug 30 at 13:00
Hi,
I work with neko's thread and I make multiple tests of performance on thread.
A sample to understand :import neko.vm.Thread;
import neko.Sys;class myClass {
static function main() {
var i = 50;
while ( i != 0) {
Sys.sleep(0.1);
Thread.create(plop);
i--;
}
Sys.sleep(15);
trace("kill all");
myClass.canDo = true;
}static function plop() {
while (!canDo) {
Sys.sleep(0.5);
}
trace("kill");
}
}and when I use "top -p" linux command in an other console, I see that thread take virtual memory, and on the kill (at the and of the function with the trace "kill") they don't free this memory.
So I want to know if you have this problem to ?
< Prev
| Page 1 / 1 |
Next >