On Fri, Jul 3, 2009 at 3:21 PM, Ondrej Zara<[email protected]> wrote:
> Hi Dean,
>>
>> You're probably running out of stack space.  131001 * 4 is half a MB.
>
>
> thanks for a quick reply and explanation! Now, is this behavior correct (not
> a bug, it is a feature!), or should I file it as a bug report (when compared
> with SM, JSC, JScript...) ?

The feature is your JavaScript runs fast.  If you need to pass around
that much data the proper thing (from both a performance and making it
work perspective) would be to use an array.

If you're embedding v8, you should be able to adjust your system stack
size and v8's stack limit to whatever crazy big values you can manage.
 See SetResouceConstraints() in the v8 API.

>
>
> O.
>
>
>>
>> On Fri, Jul 3, 2009 at 2:47 PM, ondras<[email protected]> wrote:
>> >
>> > Hi,
>> >
>> > I noticed that V8 has a significantly lower amount of arguments
>> > passable to function via .apply(). I found this value experimentally
>> > to be 131001. I tried looking into V8 sources and I found a failsafe
>> > limit at 0x800000 - much higher than my observations.
>> >
>> > There is also similar check in ia32/builtins-ia32.cc, but that not
>> > make much sense to me.
>> >
>> > So,
>> >
>> > 1) why is this limit lower than in other ECMA engines?
>> > 2) is this number constant, or does it depend on any other factors?
>> > 3) can this be somehow increased in further V8 releases?
>> >
>> >
>> > Thanks,
>> > Ondrej
>> >
>> > >
>> >
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to