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)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: ejpbruel, Assigned: ejpbruel)

References

Details

Attachments

(1 file)

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.
Attached patch Single line fixSplinter Review
Attachment #756440 - Flags: review?(khuey)
Blocks: 637572
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+
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.

Attachment

General

Created:
Updated:
Size: