Commit Graph

69 Commits

Author SHA1 Message Date
Terrence Cole
2fd25e500c Bug 1045940 - Rename needsBarrier to needsIncrementalBarrier; r=jonco 2014-07-28 10:16:56 -07:00
Terrence Cole
0530fb0a80 Bug 1045181 - Miscellaneous small cleanups in js::gc; r=jonco 2014-07-29 10:47:43 -07:00
Jon Coppeard
0fdbee64d0 Bug 1043888 - Make GetObjetZone() work on nursery objects and rename GetGCThingZone() to GetTenuredGCThingZone() r=terrence 2014-07-28 10:39:36 +01:00
Jon Coppeard
9402c2694f Bug 1038274 - Really fix previous problem with landing r=me 2014-07-16 12:04:33 +01:00
Jon Coppeard
d3c5f00dd1 Bug 1038274 - Add max heap size constants to pass to JS_NewRuntime() r=terrence 2014-07-16 10:01:20 +01:00
Jon Coppeard
ad61333040 Backed out changeset 5290e42e8345 (bug 1038274) for disabling GC malloc trigger 2014-07-16 11:34:49 +01:00
Jon Coppeard
84f87fb5e3 Bug 1038274 - Add max heap size constants to pass to JS_NewRuntime() r=terrence 2014-07-16 10:01:20 +01:00
Jon Coppeard
aa96085812 Bug 941804 - Reduce chunk size to 256K for B2G r=terrence 2014-07-15 09:42:47 +01:00
Carsten "Tomcat" Book
ef31078371 Backed out changeset a1feed3cd303 (bug 941804) for b2g bustage on a CLOSED TREE 2014-07-14 12:34:33 +02:00
Jon Coppeard
f183386d45 Bug 941804 - Reduce chunk size to 256K for B2G r=terrence 2014-07-14 10:05:17 +01:00
Jon Coppeard
acf7c3159c Bug 1034621 - Make it possible to configure nursery size r=terrence
--HG--
extra : rebase_source : 7bdf2b2b15712a31baa34501ef4adcfe0ef8bf7d
2014-07-11 09:59:05 +01:00
Jason Orendorff
42a78a347e Bug 645416, part 3 - Symbol layout and GC support for allocating them. r=terrence.
Layout: js/src/vm/Symbol.h defines the new class JS::Symbol. JS::Symbol is the
same size as JSString on all platforms, because the allocator does not support
smaller allocations.

Allocation: Since the purpose of symbols is to serve as property keys, they are
always allocated in the atoms compartment.

We take a lock when allocating. This could probably be replaced with a
main-thread-only assertion. However, if atom allocation is not already a
bottleneck, symbol allocation probably never will be.

Symbols are given their own finalize-class in the GC. This means we allocate a
page per zone for symbols, even though they are only ever allocated in the
atoms zone. Terrence thought this could be easily fixed later. It should be; we
never touch the page, but a 32-bit virtual address space does not just have
infinite pages to spare.

A jsapi-test exercises the new symbol allocation code. A few oddities in
jsapi-tests are fixed in passing.

Discussion after review led to some new assertions about minimum object size in
AllocateObject and AllocateNonObject.

--HG--
extra : rebase_source : 45abb651d3b1b493d77a5dd0eb554f96b058c63a
2014-06-23 10:55:51 -05:00
Lars T Hansen
7a4c46b050 Bug 933313: Per-worker generational GC for PJS. r=jandem r=terrence r=shu r=jonco 2014-06-09 22:04:14 -07:00
Carsten "Tomcat" Book
1f3b65a7e2 Backed out changeset d89d4281fd8d (bug 933313) for bustage on a CLOSED TREE 2014-06-06 10:18:04 +02:00
Lars T Hansen
6eab9bb8a5 Bug 933313 - Per-worker generational GC for PJS. r=jandem, r=shu, r=terrence 2014-06-06 09:21:52 +02:00
Jon Coppeard
355d38d4b4 Bug 1008473 - Remove some redundant methods and misc tidyup r=terrence 2014-06-02 16:11:24 +01:00
Terrence Cole
076db69908 Bug 1010655 - Always use the faster version of IsInsideNursery when possible; r=jonco
--HG--
extra : rebase_source : 18c195a3a5897529275deb210bfa7f57f8e29bd8
2014-05-14 19:48:09 -07:00
Ryan VanderMeulen
27de7ba7e6 Backed out changeset 36bfb1d8b8fe (bug 1010655) for Cpp test crashes. 2014-05-16 14:52:13 -04:00
Terrence Cole
a7d4443a84 Bug 1010655 - Always use the faster version of IsInsideNursery when possible; r=jonco
--HG--
extra : rebase_source : 474ef235d747f9008f79b2ad0328ec1566b8c641
2014-05-14 19:48:09 -07:00
Terrence Cole
04457e91b1 Bug 989414 - Access the store buffer through the chunk trailer; r=jonco 2014-05-01 09:26:12 -07:00
Terrence Cole
6f4928bf7f Backout 9a6b434b34be for mochitest-2 failures on a CLOSED TREE.
--HG--
extra : rebase_source : 84bb2205e9e9df143d3ba0b21127dd2030957c7d
2014-05-01 12:52:22 -07:00
Terrence Cole
6b5e5d98f9 Bug 989414 - Access the store buffer through the chunk trailer; r=jonco
--HG--
extra : rebase_source : 29c53eeb0dd0931f016dcfd91de42be00e02a946
2014-05-01 09:26:12 -07:00
Jon Coppeard
250b0498ed Bug 1001359 - Store chunk location in the chunk trailer r=terrence DONTBUILD 2014-04-26 09:30:04 +01:00
Jon Coppeard
436d3fc3b1 Backed out changeset 5c5a3cc08905 for wrong bugnumber, DONTBUILD 2014-04-26 09:37:56 +01:00
Jon Coppeard
bcdfba286e Bug 988950 - Store chunk location in the chunk trailer r=terrence 2014-04-26 09:30:04 +01:00
Chris Peterson
b6a3cbfa97 Bug 712873 - Part 2: Replace JS_ASSERT with MOZ_ASSERT outside js/src/ directory. r=luke 2014-02-17 22:24:15 -08:00
Daniel Holbert
682b66552e back out 3a8893b28489 (bug 712939) and 39adab158c17,16add78c43e3,37193db7e15b (bug 712873), for build bustage. 2014-02-19 00:15:51 -08:00
Chris Peterson
f86f58f16d Bug 712873 - Part 2: Replace JS_ASSERT with MOZ_ASSERT outside js/src/ directory. r=luke 2014-02-17 22:24:15 -08:00
Chris Peterson
28f3584391 Bug 964016 - Part 4: Replace JS_ALWAYS_INLINE with MOZ_ALWAYS_INLINE. r=luke 2014-01-24 20:14:56 -08:00
Andrew McCreight
b38b0fdc60 Bug 944491 - Add null-checking assert to GetGCThingRuntime. r=jonco 2013-11-29 12:44:00 -08:00
Andrew McCreight
6efba18832 Bug 934990 - Export CurrentThreadCanAccess functions properly. r=terrence 2013-11-05 08:55:28 -08:00
Jon Coppeard
3695d1c68a Bug 925817 - GenerationalGC: Refactor inside nursery check to avoid repetition r=terrence 2013-10-14 10:16:25 +01:00
Nathan Froyd
8ede1e6c43 Bug 924391 - don't use JS_BITS_PER_WORD in HeapAPI.h; r=billm 2013-10-08 09:54:33 -04:00
Nicholas Nethercote
e68970dcbd Bug 910771 (part 2) - Move some stuff from JS::Zone to JS::shadow::Zone, and from JSRuntime to JS::shadow::Runtime.h. r=terrence. 2013-09-04 19:19:04 -07:00
Jon Coppeard
233babc4c5 Bug 903548 - GC: What do we do for UnmarkGray on a Nursery GCThing? r=billm 2013-08-19 14:48:35 +01:00
Nicholas Nethercote
c6a37146ab Bug 888088 (part 0) - Some minor #include fix-ups. r=wmccloskey.
--HG--
extra : rebase_source : edb1291d4571c2ea3bd942e2b1fcea0ab58cbe25
2013-07-23 17:34:12 -07:00
Terrence Cole
938123e66c Bug 840242 - Use the runtime page size to control arena decommit; r=luke
--HG--
extra : rebase_source : e183246d7a2f381e015e7d860336330a726cb9f8
2013-02-11 13:59:10 -08:00
Phil Ringnalda
65d944de86 Back out 1b81a9c88872 (bug 840242) for committing infanticide in Nursery.o 2013-06-21 18:53:24 -07:00
Terrence Cole
79c2050ce8 Bug 840242 - Use the runtime page size to control arena decommit; r=luke
--HG--
extra : rebase_source : 575a7485a5c6ac51f5c0cadc91616302326ce770
2013-02-11 13:59:10 -08:00
Emanuel Hoogeveen
3e91a47df7 Bug 883697 (part 1) - Make include guards consistent in js/ductwork/, js/ipc/ and js/public/. r=njn.
--HG--
extra : rebase_source : 34f5559ba6e64831905686e12356b70109d873a8
2013-06-19 17:59:09 -07:00
Martin Husemann
745d32a5b8 Bug 867911 - Add OpenBSD and NetBSD to list of sparc64 systems with 8k pages. r=terrence 2013-05-02 20:35:32 -04:00
Sean Stangl
7c06a2ec68 Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-16 13:47:10 -07:00
Phil Ringnalda
c0b436c32d Back out a5a1dd3bd8ae (bug 860029) for stupidorange 2013-04-15 12:55:38 -07:00
Sean Stangl
efc7d9a873 Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-15 11:33:03 -07:00
Phil Ringnalda
f9e5683baf Back out 5bf9771e1a28 (bug 860029) for bustage
CLOSED TREE
2013-04-11 19:55:37 -07:00
Sean Stangl
9c52e8cf81 Bug 860029 - Standardize Modelines in the JS Module. DONTBUILD. r=njn 2013-04-11 18:48:59 -07:00
Terrence Cole
dd752f0f28 Bug 857345 - ExposeToActiveJS should not care about GC things in the Nursery; r=billm
--HG--
extra : rebase_source : 709ce1e8e36f080d8a58b0a3b22a8955f72cf17f
2013-04-01 15:31:49 -07:00
Terrence Cole
7a9993a105 Bug 852802 - Add incremental needsBarrier to the runtime and check it first; r=billm
--HG--
extra : rebase_source : b5af1fbd8f587e152e115f9c74222f195d0d97b5
2013-03-19 17:59:42 -07:00
Ryan VanderMeulen
4bba3d12d2 Backed out changeset 6b6a4d28e510 (bug 852802) for bustage on a CLOSED TREE. 2013-04-01 12:34:57 -04:00
Terrence Cole
5903256777 Bug 852802 - Add incremental needsBarrier to the runtime and check it first; r=billm 2013-03-19 17:59:42 -07:00