Chris Jones
8a19459222
Backed out changeset 4beec31b9ea9 for increasing frequency of intermittent orange bug 618052
2011-03-31 18:57:38 -05:00
Chris Jones ext:(%20and%20Kyle%20Huey%20%3Ckhuey%40kylehuey.com%3E)
c744ad1659
Rollup of bug 645263 and bug 646259: Switch to mozilla:: sync primitives. r=cjones,dbaron,doublec,ehsan src=bsmedberg
...
Bug 645263, part 0: Count sync primitive ctor/dtors. r=dbaron
Bug 645263, part 1: Migrate content/media to mozilla:: sync primitives. r=doublec
Bug 645263, part 2: Migrate modules/plugin to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 3: Migrate nsComponentManagerImpl to mozilla:: sync primitives. sr=bsmedberg
Bug 645263, part 4: Migrate everything else to mozilla:: sync primitives. r=dbaron
Bug 645263, part 5: Remove nsAutoLock.*. sr=bsmedberg
Bug 645263, part 6: Make editor test be nicer to deadlock detector. r=ehsan
Bug 645263, part 7: Disable tracemalloc backtraces for xpcshell tests. r=dbaron
Bug 646259: Fix nsCacheService to use a CondVar for notifying. r=cjones
2011-03-31 14:51:19 -05:00
Doug Turner ext:(%2C%20Shawn%20Wilsher%20%3Cme%40shawnwilsher.com%3E)
f40cf6a0a7
Bug 615978 - Add SQLITE_DBSTATUS_* memory usage to memory reporter
...
Adds some finer-grained memory reporting about SQLite usage.
r=asuth
2011-03-31 10:19:30 -07:00
Chris Leary
abf0eb4f6d
Merge mozilla-central and tracemonkey.
2011-03-29 14:52:44 -07:00
Justin Lebar
8a42eb0162
Bug 592557 - Eliminate uses of PR_Atomic{Increment,Decrement} functions in favor of PR_ATOMIC_{INCREMENT,DECREMENT} macros. r=bsmedberg,gal
...
--HG--
extra : rebase_source : 71069eb9c9d61131adee49279e136c8574dabc62
2011-03-28 15:58:49 -04:00
Marco Bonardo
5fde662992
Bug 637957 - Followup, add proper QI. rs=mossop a=blocker-orange-fix
2011-03-02 21:25:11 +01:00
Marco Bonardo
3b032b4752
Bug 637957 - Make results notifier hold a strong reference to mCallback, to prevent it being destroyed prematurely.
...
r=sdwilsh a=blocker
2011-03-02 19:55:08 +01:00
Shawn Wilsher
753bf2b51a
Bug 635482 - Crash [@ mozalloc_abort(char const* const) | NS_DebugBreak_P | AbortIfOffMainThreadIfCheckFast ] (was: [@ mozalloc_abort(char const* const) | NS_DebugBreak_P]) from nsCycleCollectingAutoRefCnt::decr with mozilla::storage::BindingParams::Release
...
Be very explicit about what thread we release objects on.
r=asuth
a=blocking
2011-02-28 11:52:31 -08:00
Phil Ringnalda
339c11dd88
Back out f9e075d85552 (Bug 635482) to investigate Mac tp4 regression, a=backout
2011-02-27 10:27:44 -08:00
Shawn Wilsher
1809b5f47c
Bug 635482 - Crash [@ mozalloc_abort(char const* const) | NS_DebugBreak_P | AbortIfOffMainThreadIfCheckFast ] (was: [@ mozalloc_abort(char const* const) | NS_DebugBreak_P]) from nsCycleCollectingAutoRefCnt::decr with mozilla::storage::BindingParams::Release
...
Be very explicit about what thread we release objects on.
r=asuth
a=blocking
2011-02-25 16:12:00 -08:00
Marco Bonardo
c429224568
Bug 628921 - Changing from WAL to a rollback journal to change page_size may cause a infinite loop @AsyncExecuteStatements::executeStatement.
...
r=sdwilsh a=blocking
2011-02-16 13:51:26 +01:00
Shawn Wilsher
e0f09974fb
Bug 580790 - Connection::initialize can access preferences off of the main thread
...
This fixes the storage service so that it caches the value from the
preference service, and obtains the value once on the main thread.
r=asuth
sr=shaver
a=blocking2.0
2010-08-06 10:28:46 -07:00
Ryan VanderMeulen
0c4d41abcd
Bug 586130 - Warning C4099 fixes (storage). r=sdwilsh a=bsmedberg
2011-01-20 19:49:09 -08:00
Andrew Sutherland
bb9fabd7a2
Bug 624051 - AsyncStatement destructor should finalize statements on the asynchronous thread when available to avoid blocking the main thread. r=sdwilsh, a=blocking2.0
2011-01-19 18:16:42 -08:00
Uli Link
5b92b1ebde
Bug 617272 - AIX compilation error for Firefox-3.6.12 source storage/src/variantToSQLiteT_impl.h", line 56.12: 1540-0274 (S) The name lookup for "sqlit e3_T_null" did not find a declaration; r,a=sdwilsh
2011-01-17 12:25:17 -05:00
Jonas Sicking
044e50f0a9
Bug 610823: Change a few users that use nsTArrays as buffers to explicitly use fallible tarray. r=jdaggett a=blocker
2011-01-06 20:45:10 -08:00
Chris Leary
366ec4ad44
Merge mozilla-central to tracemonkey.
2010-12-29 19:25:04 -05:00
Shawn Wilsher
14c17944d1
Merge Places and mozilla-central
...
a=bsmedberg
2010-12-15 19:24:51 -08:00
Shawn Wilsher
9796714cea
Merge mozilla-central to Places.
2010-12-13 15:08:04 -08:00
Shawn Wilsher
316bbf47cb
Merge mozilla-central into Places.
2010-11-29 08:43:57 -08:00
Asaf Romano
2b5040de65
Bug 617071 - SQLiteMutex.h breaks debug builds with system sqlite. r+a=sdwilsh.
2010-12-15 20:57:11 +02:00
Shawn Wilsher
af6792747b
Merge mozilla-central to Places
2010-11-10 09:38:08 -08:00
Shawn Wilsher
175cb955f1
Merge mozilla-central into places.
2010-10-20 12:33:53 -07:00
Shawn Wilsher
0863a78a68
Merging places and mozilla-central.
2010-10-15 09:26:15 -07:00
Shawn Wilsher
67ae78ed23
Bug 599970 - Add GetInterface for nsIEventTarget on Connection
...
r=asuth
2010-10-05 15:01:22 -07:00
Chris Jones
900d7c9e15
Bug 550611: Make nsTArray optionally infallible. sr=bsmedberg a=blocking
...
--HG--
rename : xpcom/glue/nsTArray.cpp => xpcom/glue/nsTArray-inl.h
2010-11-08 20:48:59 -06:00
Michael Wu
6b67fad479
Bug 597215 - Don't do setGrowthIncrement on Android, r=sdwilsh a=blocking-fennec
2010-10-12 16:20:51 -07:00
Marco Bonardo
4c6cfbb61a
Bug 541373 (part 2) - Provide a global VACUUM component. Use idle-daily category. r=sdwilsh a=blocking
2010-10-19 15:46:51 +02:00
Marco Bonardo
e7af32a760
Bug 541373 (part 1) - Provide a global VACUUM component. r=sdwilsh sr=vlad a=blocking
2010-10-19 15:46:49 +02:00
Marco Bonardo
6920426287
Bug 596970 - ASSERTION: You can't dereference a NULL nsCOMPtr with operator->() in AsyncStatement::~AsyncStatement(). r=asuth a=dietrich
2010-10-07 10:41:27 +02:00
Robert Sayre
93a7a7fac9
merge mozilla-central to tracemonkey.
2010-09-08 10:33:07 -04:00
Robert Sayre
8f11919eda
Merge mozilla-central to tracemonkey.
2010-09-01 22:27:07 -07:00
Taras Glek
07cbd53689
Bug 581606 - Avoid sqlite fragmentation via SQLITE_FCNTL_CHUNK_SIZE r=asuth sr=shaver a=b6
2010-09-01 20:35:46 -05:00
Ben Turner
956998f928
Bug 593045 - 'Add SQLite file size quota management to mozStorage'. Missed a comment change. r=ted+asuth, a=blocking2.0+.
2010-09-03 09:12:27 -07:00
Ben Turner
5d70ea8a92
Bug 593045 - 'Add SQLite file size quota management to mozStorage'. r=ted+asuth, a=blocking2.0+.
2010-09-03 07:41:55 -07:00
Luke Wagner
fb78ed07aa
Bug 581263 - remove slow natives (r=waldo,mrbkap)
2010-08-16 12:35:04 -07:00
Shawn Wilsher
f6eabf3506
Bug 583882 - Need a way to clone an existing connection.
...
r=asuth
sr=shaver
a=blocking2.0
2010-08-27 12:42:58 -07:00
Shawn Wilsher
fdf0106fad
Bug 519769 - Open shared/unshared connection with options instead of setting shared state always
...
Use the flags SQLite provides on sqlite3_open_v2 instead of using a mutex to
protect the shared cache state.
r=asuth
a=gavin
2010-08-27 12:42:55 -07:00
Luke Wagner
5afb29cf6f
Bug 609440, part 3 - remove fallible public APIs, update mozilla (r=bent,jst,mrbkap,waldo,sdwilsh)
2010-12-03 00:24:17 -08:00
Igor Bukanov
7ebf7dfa52
bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal
2010-11-11 21:40:29 +01:00
David Anderson
8fa6e1965f
Backed out changeset 8e119f847f97 (build busted)
2010-11-11 11:19:42 -08:00
Igor Bukanov
aff210f07a
bug 610198 - Replacing JS_GetStringBytes usage with JS_EncodeString. r=gal
2010-11-02 15:36:25 +01:00
Robert Sayre
e12bde1f90
Merge mozilla-central to tracemonkey.
2010-11-09 15:29:44 -05:00
Igor Bukanov
20b25b57f4
bug 607695 - Avoid unnecessary JS_GetStringBytes. r=gal
2010-10-28 17:15:53 +02:00
Doug Turner
9bd441724e
Bug 616019 - Maemo - 10mb places.sqlite database due to aggressive file growth. r=sdwilsh a=blocking-fennec
...
--HG--
extra : rebase_source : 0a81467765657bed731e068a5e5d0af404577420
2010-12-09 10:14:16 -08:00
Luke Wagner
2f574701ec
Bug 613457 - use *ById JSAPIs in storage (r=sdwilsh)
...
--HG--
extra : rebase_source : bc2548573f500f664b37b24e95bdc3b9502ba28f
2011-03-21 11:37:47 -07:00
Dan Witte
345ce33388
Bug 572223 - too much cookies.sqlite io. Part 3: sync read per domain. r=sdwilsh
2010-07-29 12:17:42 -07:00
Steve Fink
fa2771061e
Bug 580019: Fix functiontimer crash when opening db with NULL filename
2010-08-02 14:29:59 -07:00
Dan Witte
53ffc75c3e
Revert bug 572223 to fix creation of duplicate cookies.
2010-08-01 12:24:38 -07:00
Robert Sayre
7cb0f0f1ca
Merge mozilla-central to tracemonkey.
2010-07-30 21:57:41 -07:00
Dan Witte
90e2ad6d02
Bug 572223 - too much cookies.sqlite io. Part 3: sync read per domain. r=sdwilsh
2010-07-29 12:17:42 -07:00
Robert Sayre
017624baad
Merge mozilla-central to tracemonkey.
2010-07-27 13:09:04 -07:00
Shawn Wilsher
47c477cceb
Bug 578939 - Storage service cannot be initialized off of the main thread.
...
r=asuth
a=blocking2.0
2010-07-24 11:21:17 -07:00
Luke Wagner
ad475468cd
Bug 549143 - fatvals
2010-07-14 23:19:36 -07:00
Robert Sayre
0fb4de7a31
Merge mozilla-central to tracemonkey.
2010-07-02 17:25:52 -07:00
Shawn Wilsher
cc9afa869e
Bug 575667 - split about:memory reporting into more detailed sections for SQLite
...
r=vlad
a=vlad
2010-07-22 10:08:59 -07:00
Taras Glek
fa49a26806
Bug 416330 - Suboptimal SQLite page size r=sdwilsh
2010-07-01 10:57:13 -07:00
Shawn Wilsher
7603def2b3
Backout of bug 416330 so we can freeze for the beta on a CLOSED TREE.
2010-06-28 16:31:47 -07:00
Taras Glek
bc309a5840
Bug 416330 - Suboptimal SQLite page size r=sdwilsh
...
--HG--
extra : rebase_source : 053c7b1d975304ed7d402bb619874c889c71425c
2010-06-28 12:13:26 -07:00
Jeff Walden
1d0194191d
Bug 518663 - ES5: Object.getOwnPropertyNames. r=jorendorff
2009-09-24 14:33:14 -07:00
Shawn Wilsher
e872ea2fe7
Bug 571599 - Use sqlite3_unlock_notify
...
sr=vlad
r=bent
r=asuth
2010-06-21 14:23:00 -07:00
Shawn Wilsher
fc3548d95e
Bug 571581 - Propagate SQLITE_CONSTRAINT as an nsresult
...
r=asuth
sr=vlad
2010-06-16 09:59:24 -07:00
Dave Townsend
bf3fe4c217
Bug 570529: mozIStorageStatement.execute() should reset itself even if an error occurs. r=sdwilsh
2010-06-07 15:06:56 -07:00
Saint Wesonga
0a1ce15262
Bug 492625 - "Stop using underscores to start #defines" [r=vlad]
...
--HG--
extra : rebase_source : d685fb8bc375ba4fcf97742298e9361ebfe9b851
2010-06-01 08:38:00 -04:00
Chris Jones
b26c50e478
Backed out changeset c60e3e48ea38
2010-06-24 19:56:14 -05:00
Taras Glek
c11186643d
Bug 416330 - Suboptimal SQLite page size r=sdwilsh
2010-06-24 16:39:24 -07:00
Ehsan Akhgari
ab51fe552d
Bug 567254 - Crash in Connection::getFilename for memory-based databases; r=sdwilsh
...
--HG--
extra : rebase_source : 9fb1300af8c6b35a4e1aa229af032cd08a76e721
2010-05-20 20:21:09 -04:00
Ehsan Akhgari
cb3b3e8e7b
Bug 560647 - add startup timeline instrumentation; r=vlad
2010-05-19 19:22:19 -04:00
Vladimir Vukicevic
73eba77509
b=566442; add memory reporters for sqlite; r=sdwilsh
2010-05-19 13:46:08 -07:00
timeless@mozdev.org, Jason Orendorff
618d1ef4a1
Bug 562866 - StatementParams::NewResolve mishandles JSVAL_IS_STRING(aId). r=sdwilsh.
...
--HG--
extra : rebase_source : f9e1ea925fa38a26c806ba6dbddc52ef83646d55
2010-05-06 13:56:39 -05:00
Daniel Holbert
3acb68e149
Bug 560383, part 2: (storage directory) Use "!!" for converting int to bool, to avoid MSVC compile warning. r=sdwilsh
2010-05-06 11:53:12 -07:00
Mitchell Field
3d1b2b634a
Bug 560095 - Use mozilla::services::GetObserverService(). r=biesi,dveditz,gavin,josh,jst,mrbkap,roc,sdwilsh,shaver,sicking,smontagu,surkov
2010-04-29 18:59:13 +02:00
Marco Bonardo
d1dd56eabb
Bug 559678 - followup, make the warning less scarying. rs=sdwilsh
2010-04-22 14:53:56 +02:00
Marco Bonardo
a17dba3778
Bug 559678 - Better errors for Storage transactions misuse. r=asuth
2010-04-16 14:31:18 +02:00
Andrew Sutherland
cb578c3468
Bug 555124 - Intermittent "ASSERTION: AsyncStatementSpinner not thread-safe: '_mOwningThread.GetThread() == PR_GetCurrentThread()', file .../mozilla/storage/test/test_true_async.cpp, line 162". null out references on the main thread to avoid destruction on the async thread. r=sdwilsh.
2010-03-29 10:54:41 -07:00
Andrew Sutherland
f55443c1f8
Bug 507414 - Add a createAsyncStatement API on mozIStorageConnection. r=sdwilsh, sr=vlad.
...
--HG--
rename : storage/src/mozStorageStatementJSHelper.cpp => storage/src/mozStorageAsyncStatementJSHelper.cpp
rename : storage/src/mozStorageStatementJSHelper.h => storage/src/mozStorageAsyncStatementJSHelper.h
rename : storage/src/mozStorageStatementParams.cpp => storage/src/mozStorageAsyncStatementParams.cpp
rename : storage/src/mozStorageStatementParams.h => storage/src/mozStorageAsyncStatementParams.h
2010-03-24 00:32:40 -07:00
Shawn Wilsher
e905b76465
Bug 552092 - Expose a length property on mozIStorageBindingParamsArray
...
Expose the length so that consumers don't have to track if they added anything
to the array themselves.
r=asuth
sr=rob_strong
2010-03-15 10:23:39 -07:00
Shawn Wilsher
24d00ec869
Bug 552003 - Passing an empty mozIStorageBindingParamsArray does not error
...
Throw instead of just asserting, which makes debugging this so much easier.
r=asuth
2010-03-15 10:23:39 -07:00
Shawn Wilsher
3e3942b631
Bug 496019 - mozilla::storage::Connection::Close can spin a nested event loop
...
Creates a new close method that must be used when using asynchronous statements,
and disallow Close from being called in that case.
r=asuth
sr=vlad
2009-11-09 09:58:34 -08:00
Dan Witte
44050557cb
Fix regression in mozIStorageStatement.bindUTF8StringParameter such that it accepts arbitrary octets by
...
not converting string types. b=544496, r=sdwilsh
2010-02-22 13:57:45 -08:00
Justin Lebar
451d425c4b
Bug 500328 - Implement History.pushState(), History.replaceState() methods. r=smaug, r=zpao, sr=sicking
2009-09-01 09:45:05 -07:00
Daniel Holbert
d70af0ebb8
Backed out changeset dc7a04be6904 on suspicion of causing bug 543034.
2010-01-29 18:50:46 -08:00
Justin Lebar
56149d38c0
Bug 500328 - Implement History.pushState(), History.replaceState() methods. r=smaug, r=zpao, sr=sicking
2009-09-01 09:45:05 -07:00
Reed Loden
58258ab291
Backout patch from bug 489897 as the likely cause of pwmgr test failures.
2009-12-31 01:15:11 -06:00
David Dahl ext:(%2C%20Shawn%20Wilsher%20%3Csdwilsh%40shawnwilsher.com%3E)
be3b4e4c74
Bug 489897 - implement StatementRow::NewEnumerate
...
for (let colName in stmt.row) now works!
r=sdwilsh
r=ddahl
sr=mrbkap
2009-10-12 17:49:00 -05:00
Shawn Wilsher
cf2f08ac41
Bug 494828 - Stop using our own mutexes and use SQLite's where possible.
...
Part 2: Use the helper object in a few places where we had our own mutexes.
r=asuth
2009-07-22 15:18:33 -07:00
Shawn Wilsher
e9c1704f6f
Bug 525356 - windows debug unit tests: test_connection_executeAsync.js and test_statement_executeAsync.js failing frequently (fatal assertion)
...
Make sure to release the database connection on the thread it was opened on, not
the background thread!
r=asuth
a=beltzner
2009-12-02 10:53:46 -08:00
Shawn Wilsher
47e7ad299b
Backed out changeset f91a016416d1 (bug 496019)
2009-12-01 15:05:52 -08:00
Shawn Wilsher
8bafe39624
Bug 496019 - mozilla::storage::Connection::Close can spin a nested event loop
...
Creates a new close method that must be used when using asynchronous statements,
and disallow Close from being called in that case.
r=asuth
sr=vlad
a=dbaron
--HG--
extra : rebase_source : 8470e30ef4ca1e9fb516284cafb77b070e46fde3
2009-11-09 09:58:34 -08:00
L. David Baron
5ea88c20bf
Backed out changeset 4a0bf3ffd767 due to test crashes.
2009-11-19 13:51:31 -08:00
Shawn Wilsher
aff9260b92
Bug 525356 - windows debug unit tests: test_connection_executeAsync.js and test_statement_executeAsync.js failing frequently (fatal assertion)
...
Release on the calling thread so when the connections destructor is called, it
is not on the background thread.
r=asuth
2009-11-19 11:49:20 -08:00
Blair McBride
924672ea61
Bug 528076 - Unsafe LIKE warning wrongly references mozIStorageConnection::escapeStringForLIKE. r=sdwilsh
2009-11-14 10:15:12 +01:00
Shawn Wilsher
ee7576ecd2
Backout of bug 496019 and bug 526601 due to window build bustage.
2009-11-09 12:16:39 -08:00
Shawn Wilsher
98bf999dbb
Bustage fix for windows.
2009-11-09 10:35:26 -08:00
Shawn Wilsher
53a49abc6d
Bug 496019 - mozilla::storage::Connection::Close can spin a nested event loop
...
Creates a new close method that must be used when using asynchronous statements,
and disallow Close from being called in that case.
r=asuth
sr=vlad
2009-11-09 09:58:34 -08:00
Saint Wesonga
5d4cdee717
Bug 479730 - mozStorageConnection::Close logs closing improperly. r=vlad
2009-11-05 14:52:55 +01:00
David Dahl
d53ce5f2e4
Bug 524787 - crash [@mozStorageResultSet::GetNextRow(mozIStorageRow**) ]. r=sdwilsh
2009-10-31 11:38:31 +01:00
Marco Bonardo
4005693558
Bug 519326 - Variant.h(152) : warning C4244: '=' : conversion from 'PRInt64' to 'PRInt32', possible loss of data. r=sdwilsh
2009-10-09 22:15:19 +02:00
Dietrich Ayala
1e809e510b
Bug 419893 - sort out PGO-triggered bugs (r=ted)
...
--HG--
extra : rebase_source : 028cd891e11df11abf768107f64b1d6bca541dca
2009-10-08 11:01:13 -07:00
Robert O'Callahan
1c3ce818c2
Backed out changeset 59a6c227df86
2009-10-02 15:23:36 +10:00