Commit Graph

161 Commits

Author SHA1 Message Date
Jeff Walden
7e7300c162 Bug 1461556 - Call memset on a void*, not a T*, in js_delete_poison to avoid memset-on-nontrivial warnings with gcc that don't matter for an object whose lifetime is about to end. r=jandem 2018-05-16 10:44:54 -07:00
Jan de Mooij
441f19d63f Bug 1458567 part 1 - Don't invoke interrupt callback and Debugger onStep hook for internal JS engine interrupts. r=luke 2018-05-03 16:01:01 +02:00
Jan de Mooij
4f87b13b19 Bug 1452982 part 15 - Rename some constants. r=jonco 2018-04-19 13:06:12 +02:00
Jeff Walden
25a7df6306 Bug 1441657 - Implement mozilla::WrappingMultiply. r=froydnj
--HG--
extra : rebase_source : 57d1796976a25597ee4dda90561d40debc6a9fc9
2018-02-15 17:36:55 -08:00
Ted Campbell
78a8f17527 Bug 1418842 - Support JS_OOM_BREAKPOINT on MSVC. r=sfink
MozReview-Commit-ID: CHLvYjKkP7n
2017-11-19 14:35:00 +02:00
Jon Coppeard
a6e864d2ce Bug 1410132 - Use a separate jemalloc arena for all SpiderMonkey malloc allocations r=njn r=nbp 2017-11-02 14:51:27 +00:00
Sebastian Hengst
a5d99d720e Backed out 2 changesets (bug 1410132) for bustage, e.g. in spidermonkey non-unified at js/src/threading/Mutex.cpp:47: 'JS_IsInitialized' was not declared in this scope. r=backout on a CLOSED TREE
Backed out changeset 28c901411c1e (bug 1410132)
Backed out changeset 003ff6a2a254 (bug 1410132)
2017-11-07 20:04:43 +02:00
Jon Coppeard
45f03229f6 Bug 1410132 - Use a separate jemalloc arena for all SpiderMonkey malloc allocations r=njn r=nbp 2017-11-02 14:51:27 +00:00
Jon Coppeard
0f32c9b07b Bug 1411302 - Don't try and OOM test worker threads r=jandem 2017-10-27 15:52:43 +01:00
Jon Coppeard
74f1c6ece5 Bug 1406455 - Disallow OOM simulation on worker threads r=jandem 2017-10-10 12:07:08 +01:00
Christian Holler
59f6711346 Bug 1402815 - Add interruptTest function to JS engine. r=jandem
MozReview-Commit-ID: El24BdESnM2

--HG--
extra : rebase_source : e0dc21d42f19ba3e036746f7f60f4527e314b1a5
2017-09-22 18:28:47 +02:00
Christian Holler
5c886f1afd Bug 1395240 - Implement stackTest function for JS stack OOM testing. r=jandem
MozReview-Commit-ID: LRFb0adTFR8

--HG--
extra : rebase_source : f36fff24683195d4239b4ae29f3e0f0d8a0535c7
2017-09-20 14:19:21 +02:00
Lars T Hansen
691c2c0203 Bug 1277562 - Part 9: Add Wasm Tier 2 compilation tasks. r=luke
--HG--
extra : rebase_source : 2b95eddcf25d17445b1a377bd3017538b663179c
extra : source : da9e75d2e82c3e3564bb3e37230d384bcf7ffacf
2017-02-09 15:15:17 +01:00
Lars T Hansen
b0a78cb977 Bug 1388756 - Move helper thread types out of the OOM namespace. r=jonco
--HG--
extra : rebase_source : 2ec28160c41db48b2fa043f3d36e75d32832b26f
extra : histedit_source : d93bebede5edd065bb0cbcdebc509bbe3ab26d1c
2017-08-11 10:11:35 +02:00
Philip Chimento
3faca05ad5 Bug 1379538 - Unresolved symbols when linking program to standalone SpiderMonkey. r=fitzgen
Some symbols that need to be public are not marked as such.
2017-07-11 10:59:00 -04:00
Jan de Mooij
dc45e8e90e Bug 1377238 - Free finished IonBuilders off-thread. r=jonco 2017-06-29 14:43:55 -07:00
Boris Zbarsky
746467862d Bug 1346389. Make --enable-shared-js link again, at least for an opt mac build with intl api disabled. r=sfink, a=waldo on the gcc-specific bits. 2017-03-10 23:52:55 -05:00
Boris Zbarsky
d6b2fc9b4d Backed out changeset c1978f7d49c4 for build failures.
MozReview-Commit-ID: FOwcGtykkXR
2017-03-11 00:10:36 -05:00
Boris Zbarsky
160b2e80e9 Bug 1346389. Make --enable-shared-js link again, at least for an opt mac build with intl api disabled. r=sfink
MozReview-Commit-ID: 264vsCvhh9Z
2017-03-10 23:52:55 -05:00
Brian Hackett
539e47cd96 Bug 1337117 - Remove references to main thread in the JS engine, r=jandem.
--HG--
extra : rebase_source : 466336ed48fb8636d1ef428195408411ed81473d
2017-02-11 05:27:32 -07:00
Benjamin Bouvier
02cd2cddce Bug 1320374: Rename THREAD_TYPE_ASMJS into THREAD_TYPE_WASM; r=luke
--HG--
extra : rebase_source : 38d4f0b6b73d86fb65a1ad2ba20a839cc3034ed1
2016-11-25 11:50:12 +01:00
Emanuel Hoogeveen
8210833803 Bug 1294732 - Back out all of bug 1271165 as it has served its purpose. r=glandium 2016-08-23 08:45:00 -04:00
Luke Wagner
6b009b1299 Bug 1283924 - Baldr: dispatch WebAssembly.compile tasks to a helper thread (r=till)
MozReview-Commit-ID: Ll4zmDi7JuS
2016-08-17 17:06:24 -05:00
Emanuel Hoogeveen
8f67432641 Bug 1271165 - Part 3: Create and hook up an AllocPolicy for JSAPI. r=jandem 2016-08-12 07:37:00 -04:00
Chris Peterson
43c2748f66 Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
Terrence Cole
f452b33559 Bug 1257387 - Annotate OOM allocation sizes where possible; r=jonco
--HG--
extra : rebase_source : 91d74e18238554d71452498bd25860e78993c7a0
2016-04-22 11:55:34 -07:00
Nicholas Nethercote
2511b2c327 Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj.
It's an annotation that is used a lot, and should be used even more, so a
shorter name is better.

MozReview-Commit-ID: 1VS4Dney4WX

--HG--
extra : rebase_source : b26919c1b0fcb32e5339adeef5be5becae6032cf
2016-04-27 14:16:50 +10:00
Jan de Mooij
88d16d7efa Bug 1267557 part 0 - Move JS poison constants to jsutil.h. r=jonco 2016-04-28 13:38:05 +02:00
Jon Coppeard
c20538fdb8 Bug 1263218 - Fix possbile race under oomTest involving background threads r=terrence
--HG--
extra : rebase_source : 89e57d0d85029caf301f63e8409bffbbd9fd9073
2016-04-12 09:44:11 +01:00
Jon Coppeard
ca319d558f Bug 1235677 - Add assertion to catch unsafe concurrent use of AutoEnterOOMUnsafeRegion r=terrence 2016-03-30 12:33:56 +01:00
Jon Coppeard
f0d2a7676e Bug 1256672 - Make OOM alloc counters 64 bit. r=terrence 2016-03-15 11:46:00 +01:00
Carsten "Tomcat" Book
41c5d93a8a Backed out changeset 5e4e30fff99b (bug 1235677) for landing with wrong bugnumber 2016-03-16 10:59:41 +01:00
Jon Coppeard
93d786cfd8 Bug 1235677 - Refactor OOM simulation and make counters 64 bit r=terrence 2016-03-16 09:41:57 +00:00
Jon Coppeard
de80f46e74 Bug 1240416 Disallow setting GC mark stack size to zero, and assert on attempt to realloc() zero bytes r=terrence 2016-01-20 10:13:14 +00:00
Luke Wagner
72ea23c63e Bug 1239601 - improve the UniquePtr situation (r=jandem)
--HG--
extra : commitid : JegWAoGsuQ9
extra : rebase_source : 995c1b6ab8e4fd3b83c44741cd84a2d7b0d934d7
2016-01-15 18:26:20 -06:00
Luke Wagner
ce49978208 Bug 1237508 - Odin: make AsmJSModule derive wasm::Module (r=bbouvier)
--HG--
extra : commitid : FRmfuJ5MQZo
extra : rebase_source : 603b10e7fcf1cd6daa9587cd8e7cab570c519230
2016-01-08 12:35:23 -06:00
Nick Fitzgerald
bc24ddcf02 Bug 1233101 - Use MOZ_LIKELY in js_new etc to help branch prediction; r=terrence 2015-12-18 12:05:14 -08:00
Lars T Hansen
38703f8d07 Bug 1212390 - fix lingering bugs around oomAtAllocation. r=jonco 2015-10-09 10:58:12 +01:00
Jon Coppeard
93caf76aac Bug 1212430 - Remove CrashAtUnhandlableOOM() and replace with AutoEnterOOMUnsafeRegion r=jandem 2015-10-08 10:49:49 +01:00
Jon Coppeard
7187bae5a8 Bug 1208665 r=Waldo a=abillings 2015-10-07 11:04:37 +01:00
Jon Coppeard
a758f19926 Bug 1209911 - Remove option to simulate OOM on all threads r=terrence
--HG--
extra : rebase_source : c03694b314165446ffa3a6ab4d70fea02c202055
2015-10-06 14:50:50 +01:00
Jon Coppeard
810fbfb206 Bug 1209911 - Make AutoEnterOOMUnsafeRegion ignore threads that are not simulating OOM r=terrence
--HG--
extra : rebase_source : 99b217832f10946adf18896a1bb064092bb0b7fd
2015-10-06 14:50:49 +01:00
Nick Fitzgerald
30e17cfd82 Bug 1196461 - De-duplicate strings in heap snapshot core dumps; r=shu,jimb
This changeset replaces all of the

    // char16_t[]
    optional bytes someProperty = 1;

one- and two-byte string properties in the CoreDump.proto protobuf definition
file with:

    oneof {
        // char16_t[]
        bytes  someProperty    = 1;
        uint64 somePropertyRef = 2;
    }

The first time the N^th unique string is serialized, then someProperty is used
and the full string is serialized in the protobuf message. All following times
that string is serialized, somePropertyRef is used and its value is N.

Among the other things, this also changes JS::ubi::Edge::name from a raw pointer
with commented rules about who does or doesn't own and should and shouldn't free
the raw pointer to a UniquePtr that enforces those rules rather than relying on
developers reading and obeying the rules in the comments.
2015-09-30 16:03:31 -07:00
Jon Coppeard
e189757ace Bug 1200642 - Fix some more OOM handling problems r=terrence 2015-09-30 11:34:49 +01:00
Jon Coppeard
b815d04f9b Bug 1201057 - Move AutoEnterOOMUnsafeRegion to Utility.h with the other OOM simulation infrastructure r=terrence 2015-09-21 14:31:51 +01:00
Christian Holler
3f7b44f628 Bug 1199203 - Add support for per-thread OOM testing. r=jonco 2015-09-11 16:11:56 +02:00
Nigel Babu
33d16f7c15 Backed out changeset ad5849c18324 (bug 1199203) for build bustage ON A CLOSED TREE 2015-09-10 08:26:52 +05:30
Christian Holler
f4d10e47aa Bug 1199203 - Add support for per-thread OOM testing. r=jonco 2015-09-10 03:46:45 +02:00
Steve Fink
917fa3154c Bug 1196378 - js_delete should accept a const pointer like builtin delete, r=fitzgen
--HG--
extra : rebase_source : 8fc0aa9b48d3fd8a0921fc9a9b920e6fd473226f
2015-08-19 10:59:50 -07:00
Jon Coppeard
57d849ede0 Bug 1155618 - Don't retry memory allocation if we're simulating OOM r=terrence 2015-07-01 18:53:04 +01:00