Multi-threading debugger support

View: New views
1 Messages — Rating Filter:   Alert me  

Multi-threading debugger support

by Robin Ehrlich :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We have been using jsd.dll to implement JavaScript debugging. When we run in
a multi-thread environment in which we switch JS contextes between threads,
we have been having lots of aborts in the debugger when destroying JSD
contexts. Usually JS_GC fails in a free().

We noticed that JSDContext has a jsdc->dumbContext, but that there is no
support for switching threads via  JS_SetContextThread() and
JS_ClearContextThread(). This causes assertion failures in GC. Is this a
bug? Should jsd work in such a mode? Could some calls be added to assign the
thread to the context correctly?

Robin


_______________________________________________
dev-apps-js-debugger mailing list
dev-apps-js-debugger@...
https://lists.mozilla.org/listinfo/dev-apps-js-debugger