Closed
Bug 877995
Opened 12 years ago
Closed 12 years ago
IndexedDB should set a stack quotum when creating a JS runtime
Categories
(Core :: Storage: IndexedDB, defect)
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: ejpbruel, Assigned: ejpbruel)
References
Details
Attachments
(1 file)
|
882 bytes,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
IDBObjectStore creates a new JS runtime. Whenever we do this, we also need to set a stack quotum. Not doing this could cause JS_CHECK_RECURSION to report false positives.
This is blocking us from landing bug 637572.
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #756440 -
Flags: review?(khuey)
Comment on attachment 756440 [details] [diff] [review]
Single line fix
Review of attachment 756440 [details] [diff] [review]:
-----------------------------------------------------------------
IDB shouldn't need much stack space here. I'm not sure what the minimum is but I think we could get by with even less if possible.
Anyways r=me.
::: dom/indexedDB/IDBObjectStore.cpp
@@ +525,5 @@
> + /*
> + * Not setting this will cause JS_CHECK_RECURSION to report false
> + * positives
> + */
> + JS_SetNativeStackQuota(mRuntime, 128 * sizeof(size_t) * 1024);
Extra whitespace at EOL.
Attachment #756440 -
Flags: review?(khuey) → review+
| Assignee | ||
Comment 3•12 years ago
|
||
Assignee: nobody → ejpbruel
Comment 4•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•