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-01-04 10:14:53 +00:00
2014-04-25 21:19:51 +00:00
2012-04-08 15:55:06 +00:00
2013-06-11 00:05:57 +00:00
2012-06-06 19:37:03 +00:00
2012-06-06 19:37:03 +00:00
2013-11-13 20:05:57 +00:00
2013-07-08 20:25:06 +00:00
2013-10-03 18:22:10 +00:00
2013-09-29 14:02:47 +00:00
2013-08-18 22:17:57 +00:00
2011-09-26 21:36:33 +00:00
2013-10-18 15:56:12 +00:00
2013-10-18 16:05:02 +00:00
2013-10-19 01:11:20 +00:00
2013-10-18 16:15:42 +00:00
2013-10-18 16:15:42 +00:00
2013-10-18 16:15:42 +00:00
2011-11-25 06:36:13 +00:00
2011-11-25 06:36:13 +00:00
2014-04-06 16:27:57 +00:00
2014-04-06 16:27:57 +00:00
2014-03-13 02:37:05 +00:00
2012-04-18 20:39:00 +00:00
2012-01-12 12:51:10 +00:00
2012-10-30 02:03:40 +00:00
2012-10-15 10:34:23 +00:00
2013-11-28 00:57:39 +00:00
2012-08-06 22:38:42 +00:00
2014-03-28 20:26:32 +00:00
2014-01-04 10:14:53 +00:00
2014-01-06 22:14:27 +00:00
2013-10-04 02:29:16 +00:00
2014-01-05 16:15:20 +00:00
2012-10-15 10:34:23 +00:00
2013-10-19 00:53:58 +00:00
2013-10-19 00:53:58 +00:00
2013-09-29 13:19:52 +00:00
2012-08-06 19:10:47 +00:00
2012-02-21 05:00:21 +00:00
2011-03-23 13:36:20 +00:00
2014-01-04 10:41:32 +00:00
2014-01-04 10:41:32 +00:00
2012-01-31 00:06:56 +00:00
2012-04-22 04:04:02 +00:00
2013-10-03 18:22:10 +00:00
2013-10-03 18:22:10 +00:00
2014-01-04 10:41:32 +00:00
2014-01-04 10:41:32 +00:00
2014-01-04 10:41:32 +00:00
2013-07-12 03:46:40 +00:00
2013-07-11 22:53:31 +00:00
2011-05-03 12:38:42 +00:00
2013-12-06 00:42:50 +00:00
2012-06-17 03:40:35 +00:00
2013-12-04 17:21:59 +00:00
2013-12-04 17:21:59 +00:00
2013-12-04 17:21:59 +00:00
2013-12-04 17:21:59 +00:00
2012-06-06 19:37:03 +00:00
2012-06-06 19:37:03 +00:00
2011-11-25 06:36:13 +00:00
2012-04-22 04:04:02 +00:00
2013-12-06 00:42:50 +00:00
2013-12-06 00:42:50 +00:00
2013-11-12 01:17:16 +00:00
2013-09-29 13:19:52 +00:00
2013-11-12 01:17:16 +00:00
2013-09-29 13:19:52 +00:00
2014-01-26 01:20:34 +00:00
2012-04-03 18:44:46 +00:00
2012-04-03 18:44:46 +00:00
2013-07-02 11:44:46 +00:00
2012-02-21 05:00:21 +00:00
2013-06-25 00:57:42 +00:00
2012-04-18 20:39:00 +00:00
2012-01-22 18:20:33 +00:00
2012-08-07 18:21:16 +00:00
2014-03-13 02:37:05 +00:00
2012-08-07 18:21:16 +00:00
2012-08-07 18:21:16 +00:00
2012-08-07 18:21:16 +00:00
2012-01-31 00:06:56 +00:00
2012-01-30 06:21:11 +00:00
2013-11-12 01:11:08 +00:00
2011-07-20 19:48:06 +00:00
2013-12-06 00:42:50 +00:00
2013-12-06 00:42:50 +00:00
2014-03-13 02:37:05 +00:00
2013-10-18 15:36:31 +00:00
2014-03-13 02:37:05 +00:00
2013-11-09 01:03:23 +00:00
2013-05-21 22:11:47 +00:00
2013-02-03 02:08:20 +00:00
2013-07-02 11:44:46 +00:00
2013-07-02 11:44:46 +00:00
2012-02-27 05:32:35 +00:00
2012-02-27 05:32:35 +00:00