Help regarding invocation of JS_INIT in multithreaded environment in windows
21 views
Skip to first unread message
ravi prakash Bajpai
unread,
Jan 18, 2020, 10:43:08 AM1/18/20
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
hello everyone,
In my code when i am calling JS_INIT()/other_stuff/JS_SHUTDOWN() for per thread processing it is crashing .
when i am moving JS_INIT to be called only when process is coming up . its working fine . but now memory is keep increasing .
I am calling other function related to JS_NewRuntime()/JS_NewContext()/ ----prcocesing ---/JS_DestroyContext()/JS_DestroyRuntime() per thread.
first i thought, i haven't build spider monkey in threadsafe manner in windows . but it turned out JS_THREADSAFE has been removed . and all builds are by default threadsafe.
please provide your suggestion regarding this issue .