Commit Graph

553 Commits

Author SHA1 Message Date
Gregor Wagner
6c6726d922 Bug 651546 - Remove stackLimit from GCMarker. r=billm 2011-04-20 12:22:04 -07:00
Bill McCloskey
3c0cd83aa3 Bug 616666 - Use explicit stack for GC marking (r=gal) 2011-04-15 16:56:08 -07:00
Gregor Wagner
d08cc80190 Bug 650855 - Followup for bug 627200. r=gal 2011-04-18 10:55:47 -07:00
Andreas Gal
fd2168c3af Implement Harmony weak maps (bug 547941, r=jorendorff). 2011-04-16 21:23:44 -07:00
Gregor Wagner
99a0150f57 Bug 627200 - Background Finalization for Strings and Objects r=gal 2011-04-13 13:43:33 -07:00
Igor Bukanov
55e510df64 bug 646044 - ContextAllocPolicy should not account for GC memory pressure. r=luke 2011-03-30 12:10:12 +02:00
L. David Baron
0a579a3bbb Back out changeset 7dcd0d16cc08 (bug 547941) for causing jsreftest crashes on debug builds. 2011-04-12 01:28:40 -07:00
Andreas Gal
55fc66a7e0 Bug 547941 - WeakMap. r=jorendorff. 2011-04-11 22:38:11 -07:00
Gregor Wagner
63e89ff1d0 Bug 648786 - Fix checkArenaListsForThing (r=gal) 2011-04-09 17:26:58 -07:00
Gregor Wagner
7cdffe12ac Bug 647055 - Fix MarkIfGCThingWord. r=igor 2011-04-06 13:05:16 -07:00
Igor Bukanov
10724eed0a Bug 641048 - adding proper constructor/destrictor to JSTHread/ThreadData 641048. r=luke r=mrbkap 2011-03-13 15:45:02 +01:00
Luke Wagner
53aca4319a Bug 639883 - rm js_FinalizeStringRT (r=igor)
--HG--
extra : rebase_source : c7f77ad290112fe7d6c53255dbf5595c94be3422
2011-03-31 16:05:31 -07:00
Paul Biggar
43b850291d Bug 643548: Remove mozalloc_undef_macro_wrappers hack from JS engine. (r=luke,rs=brendan)
mozalloc_undef_macro_wrappers are brittle and have side-effects that are hard
to debug and fix. The alternative is the just stick an underscore on the end of
malloc, free, etc, which is a comparatively small burden.
2011-03-31 01:14:12 -07:00
Paul Biggar
72c7701093 Bug 634155: Account for NewCompartment's memory, and change allocation APIs (r=nnethercote)
This changes the allocation API, in the following way:

  js_malloc -> {cx->,rt->,OffTheBooks::}malloc
  js_calloc -> {cx->,rt->,OffTheBooks::}calloc
  js_realloc -> {cx->,rt->,OffTheBooks::}realloc
  js_free -> {cx->,rt->,Foreground::,UnwantedForeground::}free
  js_new -> {cx->,rt->,OffTheBooks::}new_
  js_new_array -> {cx->,rt->,OffTheBooks::}new_array
  js_delete -> {cx->,rt->,Foreground::,UnwantedForeground::}delete_

This is to move as many allocations as possible through a JSContext (so that they may be aken into account by gcMallocBytes) and to move as many deallocations to the background as possible (except on error paths).
2011-03-31 01:13:49 -07:00
Gregor Wagner
f18b7462d5 Bug 644871 - Combine MarkAndSweep/MarkAndSweepCompartment (r=billm) 2011-03-28 13:17:46 -07:00
Luke Wagner
be794a0b5b Bug 633690 - add HashMap::lookupWithDefault and putNew helper functions (r=billm)
--HG--
extra : rebase_source : 109b7974dac40749562c3b3ad4615029f1699b97
2011-03-23 17:40:11 -07:00
Luke Wagner
a15ba4f804 Bug 636296 - Change meaning of JSStackFrame::hasCallObj to be more sane (r=waldo) 2011-03-14 11:30:36 -07:00
Bill McCloskey
0f733168cb Bug 569422 - Allocate js::Shape from the GC heap (r=brendan) 2011-03-23 11:57:44 -07:00
Bill McCloskey
3147ade825 Bug 569422 - Fix nits in GC and GC inlines (r=brendan) 2011-03-23 11:57:37 -07:00
Bill McCloskey
1c6a8baf76 Bug 569422 - Remove unions from GC (r=luke) 2011-03-23 11:57:27 -07:00
Bill McCloskey
aa21051629 Bug 569422 - Miscellaneous fixes for GCed shapes (r=brendan) 2011-03-23 11:57:19 -07:00
Bill McCloskey
119f52edb6 Bug 569422 - Add const to some GC type signature (r=brendan) 2011-03-23 11:57:15 -07:00
Luke Wagner
7c96945e3c Bug 613457 - clean up string interfaces (r=njn)
--HG--
extra : rebase_source : 3e77b67fa9fe2cc31312ad99951cf92258a98e64
2011-03-14 13:59:53 -07:00
Luke Wagner
fee4a41733 Bug 616562 - speed up JSString::isStatic (r=njn)
--HG--
extra : rebase_source : 9f0b553b8ab54bfbbd5290ba936581bda8bb40ec
2011-03-14 13:55:55 -07:00
Andew Paprocki
d610f1ab70 Bug 587103. Properly scope external calls in templated functions to fix compilation with some compilers. r=mrbkap 2011-03-22 17:19:09 -04:00
Luke Wagner
9e6a66371c Bug 640852 - Don't try to avoid marking atoms in ropes and dependent strings (r=gwagner)
--HG--
extra : rebase_source : 5cd329574101889ba97b512ad464b23f1e2e693e
2011-03-14 13:55:58 -07:00
Luke Wagner
0db79e7ad5 Bug 640274 - rm {JS_,js_,}GetExternalStringGCType (r=brendan)
--HG--
extra : rebase_source : 1a2b1df8c7ed9cdbf0455e6e8c117382cb1fb2bb
2011-03-14 13:55:43 -07:00
Bill McCloskey
4f00dab2ab Bug 639954 - *Really* set cx->compartment to NULL during GC (r=luke) 2011-03-14 10:37:05 -07:00
Andreas Gal
0dec3716f6 Inline GC mark path (bug 639729, r=billm). 2011-03-13 18:13:52 -07:00
Gregor Wagner
a372a8f059 Bug 638199 - Shrink ArenaHeader (r=wmccloskey) 2011-03-10 15:27:21 -08:00
Andreas Gal
e787b97701 Sweep compartments when no objects live in them (bug 639270, r=gregor). 2011-03-08 20:58:38 -08:00
Phil Ringnalda
d21d12b55b Back out 80d8431f209e (bug 639270) for failing to actually compile 2011-03-08 19:59:30 -08:00
Andreas Gal
033fce6c39 Sweep compartments when no objects live in them (bug 639270, r=gregor). 2011-03-08 18:10:47 -08:00
Jeff Walden
6de99f0675 Bug 638997 - Remove the id field from PropDesc: users who needed it should manage the id separately. r=luke
--HG--
extra : rebase_source : eb2152a2259a81bca1d7a4f5521787f9385a3c6f
2011-03-04 17:24:15 -08:00
Andreas Gal
751570828f Mark watch points after the main GC phase (bug 639235, r=jorendorff). 2011-03-07 16:56:17 -08:00
Nicholas Nethercote
ce865cc77b Bug 600734 - TM: some jstracer.h clean-ups. r=dmandelin. 2011-03-03 19:59:00 -08:00
Gregor Wagner
f20e96eab6 Bug 636365 - Add separate GCTIMER interval for sweeping Shapes. NPOTB, (r=gal) 2011-02-23 19:58:19 -08:00
Bill McCloskey
5ecac5c965 Bug 635873 - Fix shape marking during per-compartment GCs (r=gal,a=dmandelin) 2011-02-22 12:45:18 -08:00
Andreas Gal
9a7cc712a8 When idle the GC holds on to unused chunks indefinitely (bug 631733, r=brendan, a=blocker). (relanding in a CLOSED TREE) 2011-02-19 22:59:49 -08:00
Jeff Walden
1e41f95c6d #jsapi observed the extent of orange in the TM tree and saw that OS X x86 opt was consistently and totally evil. So jwalden was sorry he had ever pushed changes for bug 631135. It broke his heart. And he said, “I will wipe this tree of every push back to 9105cd721d46. Yes, and I will revert the entire TM CLOSED TREE. I am sorry I ever pushed to it.” But 9105cd721d46 found favor with #jsapi. 2011-02-20 17:46:35 -08:00
Andreas Gal
faec8b99c2 When idle the GC holds on to unused chunks indefinitely (bug 631733, r=brendan, a=blocker). 2011-02-19 22:59:49 -08:00
Ben Turner
9af6c69d00 Bug 614347 - 'XPConnect-wrapped JSObjects must clear their gray bit when they are handed out'. r=peterv+gal, a=blocking. 2011-02-16 12:47:08 -08:00
Steve Fink
1c6a84e2d8 Bug 633016 - Notify debug hooks of script lifetime when pulling script from the eval cache (r=luke)
--HG--
extra : rebase_source : cec97d3ad0bcbad52bda31fb6148ce1e6a1a3b95
2011-02-11 13:23:18 -08:00
Bill McCloskey
667b23ee82 Bug 629817 - Add an AutoShapeVector to root shape vectors on the stack (r=luke) 2011-02-07 12:06:32 -08:00
Gregor Wagner
b84e4431ab Bug 631969 - gc_per_compartment option does not work. r=gal 2011-02-07 11:24:08 -08:00
Bill McCloskey
40b74847a1 Bug 609104 - Move the property tree to the compartment (r=brendan) 2011-02-04 10:59:07 -08:00
Bill McCloskey
4d89be0bd8 Backed out bug 609104 (csets ac3ba38f20c0 and 7717cabaf20c) (orange) 2011-02-02 14:20:06 -08:00
Bill McCloskey
8cdd8f8e68 Bug 609104 - Fix nits 2011-02-02 10:29:47 -08:00
Bill McCloskey
daa16e64bb Bug 609104 - Move the property tree to the compartment (r=brendan) 2011-01-27 15:46:39 -08:00
Chris Leary
6d0cc31d27 Back out changeset 7d82892cb8df. 2011-01-27 19:43:33 -08:00