Closed Bug 878000 Opened 11 years ago Closed 11 years ago

ProxyAutoconfig should set a stack quotum when creating a JS runtime

Categories

(Core :: Networking, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: ejpbruel, Assigned: ejpbruel)

References

Details

Attachments

(1 file)

ProxyAutoConfig 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 #756453 - Flags: review?(khuey)
Blocks: 637572
Comment on attachment 756453 [details] [diff] [review]
Single line fix

Review of attachment 756453 [details] [diff] [review]:
-----------------------------------------------------------------

I may be overstepping my bounds a little bit by r+ing this, but I'm going to do it anyways.

::: netwerk/base/src/ProxyAutoConfig.cpp
@@ +528,5 @@
> +    /*
> +     * Not setting this will cause JS_CHECK_RECURSION to report false
> +     * positives
> +     */ 
> +    JS_SetNativeStackQuota(mRuntime, 128 * sizeof(size_t) * 1024); 

More extra whitespace at EOL.
Attachment #756453 - Flags: review?(khuey) → review+
kyle's review is fine by me. (and appreciated too!)
https://hg.mozilla.org/mozilla-central/rev/1180fa46316f
Status: NEW → RESOLVED
Closed: 11 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: