[Jamvm-general] query regarding malloc use with multi-thread in linux
Brought to you by:
rlougher
From: Deepak J. <dee...@el...> - 2012-05-25 06:33:08
|
Hello JAMVM team, I was curious about an issue I found in JAMVM 1.5.3 A deadlock, what happened is when JAMVM cloned many threads(40), and a few threads called malloc simultaneously, they entered a futex lock. Now, what happened is the garbage collector thread called suspendAllthread, and as one of the threads was stuck in futex lock, it went in an infinite loop of sched_yield(). This is a generic problem in glibc, but my question is that, is there a way other JAMVM users have tried to solve it. Like using mtmalloc, etc. If yes, why not we include a thread safe version with JAMVM, itself. I am not registered to the mailing list, so please do keep me in reply. Best Regards, Deepak Jangid |