Re: next nightly build problem

<[email protected]>
Newsgroups gmane.lisp.clisp.devel
Message-ID <2d32409ea3844e459f7196bc4975d2ce@HE104834.emea1.cds.t-internal.com>
Hi,

Don Cohen wrote::

>[email protected] writes:
> > The memory models influence some limits, e.g. MOST-POSITIVE-FIXNUM and
> > perhaps ARRAY-TOTAL-SIZE-LIMIT or one of the siblings.
> > Weren't you the one once wondering about the seemingly low
> > string size limit despite a 64 bit build?
>Yes, in fact I found myself wondering about this again just yesterday.
>And now I can't seem to find the answer.  
>What is the reason for this, and where should I have looked for it?

I quickly scanned my archives, didn't find anything about string limits, but found
the following. I've no idea whether Vladimir's observation still applies.

-----Original message-----
Von: Vladimir Tzankov [mailto:[email protected]] 
Gesendet: Mittwoch, 29. Februar 2012 15:38
To: CLisp Development List
Subject: problem with ARRAY-DIMENSION-LIMIT on 64 bit builds with HEAPCODES (e.g. OSX)

On 64 bit OSX clisp uses HEAPCODES and encodes VRECORDs length with 24 bits.
However since it is 64 bit system arraysize_limit_1 is defined as:
((uintV)(vbitm(intLsize)-1)) and ARRAY-DIMENSION-LIMIT is 4294967296.
As a result creating vector with more than 2^24 elements will cause segfault on next garbage collection.
Affected are also large hashtables - they create internally vectors and check sizes directly against "vbitm(oint_data_len)-1" not arraysize_limit_1.

I guess every 64 bit build with HEAPCODES will experience the same problem.

What is the best way to fix this?
-----

Regards,
	Jörg


------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.