Yves
7acdde5c86
Changes tests to use global g_ScriptRuntime instead of creating a new JSRuntime for each test.
...
The tests crashed on my Debian systems but not on my Ubuntu system.
The crash happened in line 142 of SpiderMonkey's ThreadLocal.h.
I know that I had to use a workarounnd for contexts to avoid destroying
the context that was created first. I also had in mind that in newer
versions a JS_Init function got introduced which presumably solves this
kind of issues.
Based on this experience I assumed runtimes could have a similar problem
and this patch indeed fixes the issues.
Unfortunately the correct usage of JSRuntimes in that regard is not
documented.
There's only a rater misterious comment in JSAPI.h which hasn't been
cleared up so far and is most likely completely outdated
(https://bugzilla.mozilla.org/show_bug.cgi?id=992641 ).
This was SVN commit r14995.
2014-04-25 21:19:51 +00:00
..
2014-04-25 21:19:51 +00:00
2014-03-28 20:26:32 +00:00
2013-03-25 05:01:36 +00:00
2013-09-11 20:41:53 +00:00
2014-01-08 18:27:58 +00:00
2013-10-06 04:49:38 +00:00
2013-09-11 20:41:53 +00:00
2013-12-30 16:07:19 +00:00
2013-09-15 14:03:53 +00:00
2013-09-11 20:41:53 +00:00
2012-08-08 05:18:20 +00:00
2013-12-06 00:42:50 +00:00
2013-07-07 22:44:47 +00:00
2012-01-18 21:22:58 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2014-02-21 13:42:46 +00:00
2013-09-11 20:41:53 +00:00
2013-10-16 17:58:12 +00:00
2014-04-14 19:52:49 +00:00
2013-09-11 20:41:53 +00:00
2013-09-11 20:41:53 +00:00
2013-12-30 15:52:42 +00:00
2014-02-25 06:27:15 +00:00
2013-10-15 10:05:08 +00:00
2014-01-06 22:49:57 +00:00
2011-01-16 14:08:38 +00:00
2013-12-30 16:07:19 +00:00
2013-10-15 10:05:08 +00:00
2014-04-14 15:00:49 +00:00
2014-02-25 06:27:15 +00:00
2013-12-04 16:52:44 +00:00
2013-12-04 16:52:44 +00:00
2013-09-10 14:17:04 +00:00
2013-03-13 20:44:48 +00:00
2011-01-12 12:29:00 +00:00
2011-01-12 12:29:00 +00:00
2010-08-01 17:38:01 +00:00
2010-08-01 17:38:01 +00:00
2014-03-28 20:26:32 +00:00
2014-01-08 18:27:58 +00:00
2011-03-21 17:53:13 +00:00
2011-03-21 17:53:13 +00:00
2011-05-05 20:07:51 +00:00
2011-05-05 20:07:51 +00:00
2010-04-23 18:36:48 +00:00
2013-10-06 04:49:38 +00:00
2010-01-09 19:20:14 +00:00
2010-01-09 19:20:14 +00:00
2013-07-07 22:44:47 +00:00
2013-12-30 16:07:19 +00:00
2010-10-30 18:25:34 +00:00
2013-10-19 00:53:58 +00:00
2011-03-23 13:36:20 +00:00
2011-03-21 22:59:00 +00:00
2012-08-08 05:18:20 +00:00
2012-08-08 05:18:20 +00:00
2013-12-06 00:42:50 +00:00
2013-12-06 00:42:50 +00:00
2010-03-20 19:18:01 +00:00
2013-07-07 22:44:47 +00:00
2012-04-21 13:12:36 +00:00
2012-04-21 13:12:36 +00:00
2011-03-26 20:17:21 +00:00
2011-03-26 20:17:21 +00:00
2013-12-04 17:38:46 +00:00
2013-12-04 17:38:46 +00:00
2012-05-19 23:07:41 +00:00
2012-05-19 23:07:41 +00:00
2013-10-16 17:58:12 +00:00
2013-10-16 17:58:12 +00:00
2014-04-14 19:52:49 +00:00
2014-04-14 19:52:49 +00:00
2012-07-19 04:45:01 +00:00
2012-07-30 21:06:54 +00:00
2011-07-20 19:48:06 +00:00
2011-07-20 19:48:06 +00:00
2010-04-04 21:24:39 +00:00
2010-04-04 21:24:39 +00:00
2013-03-05 22:52:48 +00:00
2013-03-05 22:52:48 +00:00
2014-01-16 20:32:44 +00:00
2011-02-20 20:45:39 +00:00
2013-11-26 15:12:16 +00:00
2014-02-25 06:27:15 +00:00
2011-07-20 19:48:06 +00:00
2011-08-18 20:28:53 +00:00
2011-08-18 20:28:53 +00:00
2012-01-18 21:22:58 +00:00
2010-01-09 19:20:14 +00:00
2010-01-09 19:20:14 +00:00
2013-09-30 23:52:22 +00:00
2013-09-30 23:52:22 +00:00
2010-01-22 20:03:14 +00:00
2010-01-22 20:03:14 +00:00
2014-04-14 15:00:49 +00:00
2014-04-14 15:00:49 +00:00
2010-10-04 17:34:33 +00:00
2010-10-04 17:34:33 +00:00
2013-02-03 02:08:20 +00:00
2013-02-03 02:08:20 +00:00
2014-01-05 16:15:20 +00:00
2014-01-05 16:15:20 +00:00