Unlimited stack space?
Kyle Marple <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
Is there a way to remove, rather than increase, the limits that SWI places on stack sizes? I'm currently using 64-bit SWI, version 6.4.1. As of 5.6.53, the following was included in the manual: limit_stack(+Key, +Kbytes) Limit one of the stack areas to the specified value. Key is one of local, global or trail. The limit is an integer, expressing the desired stack limit in K bytes. If the desired limit is smaller than the currently used value, the limit is set to the nearest legal value above the currently used value. If the desired value is larger than the maximum, the maximum is taken. Finally, if the desired value is either 0 or the atom unlimited the limit is set to its maximum. The maximum and initial limit is determined by the command line options -L, -G and -T. Currently, it's no longer documented and I still get stack space errors with large data files, even when using the command line options '-L0 -G0 -T0' (this occurred before upgrading from SWI 5.6.x as well). In every case, this occurs long before the host system runs out of memory. Thus I assume this functionality is either no longer supported, or doesn't work correctly. Sincerely, Kyle Marple