[LLVMdev] Parallelism in HLVM

Jon Harrop jon at ffconsultancy.com
Fri Jan 1 12:35:19 PST 2010


The HLVM project is a high-level VM optimized for scientific computing:

  http://www.ffconsultancy.com/ocaml/hlvm/

I implemented the first-working version of a garbage collector capable of 
collecting from threads that run in parallel in November. Initial performance 
was awful due to the overhead of accessing thread-local data via POSIX 
pthreads. I just completed optimizing HLVM so thread-local data are now 
passed everywhere as an auxiliary argument to every HLVM function. This has 
dramatically improved performance and single-threaded code now runs within 
25% of the performance of the serial collector.

However, one test fails with a segfault when JIT compiled with TCO enabled and 
I don't know why.

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e



More information about the llvm-dev mailing list