search for: maysuspendcontext

Displaying 4 results from an estimated 4 matches for "maysuspendcontext".

2014 May 13
5
[LLVMdev] Finding safe thread suspension points while JIT-ing (was: Add pass run listeners to the pass manager.)
...urrent /// thread. Only call this method when LLVM doesn't hold any global mutex or /// cannot block the execution in another LLVM context. void callMaySuspendCallback(); On May 12, 2014, at 5:26 PM, Nick Lewycky <nlewycky at google.com> wrote: > Would you (or anyone) oppose a simple maySuspendContext() callback API? It would mean nothing more than the thread(s) for a given LLVM context can be suspended independent from other contexts. > > I think this is the right approach. So a given thread hits a safe point, it optionally calls a "suspend check" or "i an safe to suspend...
2014 May 15
3
[LLVMdev] Finding safe thread suspension points while JIT-ing (was: Add pass run listeners to the pass manager.)
...esn't hold any global mutex or >> /// cannot block the execution in another LLVM context. >> void callMaySuspendCallback(); >> >> On May 12, 2014, at 5:26 PM, Nick Lewycky <nlewycky at google.com> wrote: >> >>> Would you (or anyone) oppose a simple maySuspendContext() callback API? It would mean nothing more than the thread(s) for a given LLVM context can be suspended independent from other contexts. >>> >>> I think this is the right approach. So a given thread hits a safe point, it optionally calls a "suspend check" or "i an...
2014 May 13
3
[LLVMdev] Finding safe thread suspension points while JIT-ing (was: Add pass run listeners to the pass manager.)
...oes this interact with something like the hoped for parallel LTO? > > Like Chandler, I believe there needs to be a fully thought out proposal and discussion on this list. I would weakly oppose the change in it's current form solely on this basis. Would you (or anyone) oppose a simple maySuspendContext() callback API? It would mean nothing more than the thread(s) for a given LLVM context can be suspended independent from other contexts. > Andy, Juergen - Can you start by providing a bit more background information? What do you need the thread yield call back for? Garbage collection? Other...
2014 May 10
3
[LLVMdev] Finding safe thread suspension points while JIT-ing (was: Add pass run listeners to the pass manager.)
On May 9, 2014, at 7:36 PM, Andrew Trick <atrick at apple.com> wrote: > > On May 9, 2014, at 6:33 PM, Chandler Carruth <chandlerc at google.com> wrote: > >> So, I'm bringing a discussion that has thus far been on llvm-commits to llvmdev because I finally (and thanks for helping me understand this Andy) understand what is *really* going on, and I think lots of