Commit Graph

540 Commits

Author SHA1 Message Date
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
Bill McCloskey
a4f9ab0da8 Bug 609104 - Move the property tree to the compartment (r=brendan) 2011-01-27 15:46:39 -08:00
Chris Leary
074bd0c596 Bug 595691, take 2: fix versioning across VM instances, remove _options. (r=luke,brendan,igor) 2011-01-27 02:54:58 -08:00
Chris Leary
1771b7c232 Backed out changeset b88172246b66 due to Win32 debug failures. 2011-01-25 04:11:47 -08:00
Chris Leary
b462e1fb98 Bug 595691: fix versioning across VM instances, remove _options. (r=luke,brendan,igor) 2011-01-25 02:33:27 -08:00
Gregor Wagner
be2a4effab Bug 624224 - cleanup compartment sweep code, r=brendan 2011-01-18 15:20:39 -08:00
Nicholas Nethercote
ed55695802 Bug 624878 - Remove dangerous uses of vanilla (throw-on-failure) |operator new|. r=lw. 2011-01-17 19:44:10 -08:00
Nicholas Nethercote
7fab2c76a8 Backed out changeset 1548012fa682 due to leaks found by Valgrind. 2011-01-13 19:04:03 -08:00
Gregor Wagner
e9af9eccb4 Bug 624224 - cleanup compartment sweep code r=brendan 2011-01-13 16:58:27 -08:00
Gregor Wagner
bc39a65c18 Bug 625484 - rename defaultCompartment r=gal 2011-01-13 14:42:36 -08:00
Bill McCloskey
238069d8ff Bug 623050 - Move tracerState to compartment (r=gal) 2011-01-12 16:56:23 -08:00
Jeff Walden
49b0d53f93 Bug 623301 - Properly root arguments names during a call to Function(). r=brendan
--HG--
extra : rebase_source : 4c397e75a23eca275c6fea1b50d675ff23fea2ba
2011-01-05 16:50:30 -06:00
Andreas Gal
108bc95880 Add API to enable/disable per-compartment GCs (bug 624229, r=shaver). 2011-01-09 22:57:21 -08:00
Gregor Wagner
2239d8a65d Bug 624168 - inconsistency in crossCompartment wrapper data structure r=gal 2011-01-08 20:06:29 -08:00