|
2004-07-07
| ||
| 20:47 | • Closed ticket [929926ffff]: Tcl_Alloc should take WideInt or size_t plus 7 o... artifact: 2469ba7143 user: dkf | |
|
2004-04-07
| ||
| 20:11 | • Ticket [929926ffff]: 5 changes artifact: 09cec3ebac user: dkf | |
| 05:34 | • Ticket [929926ffff]: 4 changes artifact: 5a16e000e1 user: dgp | |
| 05:27 | • Ticket [929926ffff]: 4 changes artifact: 00d52fc763 user: kot | |
| 05:09 | • Ticket [929926ffff]: 4 changes artifact: 0a1784452a user: dgp | |
|
2004-04-06
| ||
| 20:28 | • Ticket [929926ffff]: 4 changes artifact: 714e1297c5 user: kot | |
| 16:17 | • Ticket [929926ffff]: 5 changes artifact: ce310cd31a user: dkf | |
| 10:50 | • Ticket [929926ffff]: 6 changes artifact: 084158e2ee user: dgp | |
| 10:47 | • Ticket [929926ffff]: 4 changes artifact: 6bfb43c59b user: dgp | |
|
2004-04-05
| ||
| 18:44 | • New ticket [929926ffff]. artifact: df8a92c6b1 user: kot | |
Tcl_Alloc should take WideInt or size_t
Closed / Duplicate929926ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 22 years ago
Descriptionplain2004-04-05 18:44:52
Currently Tcl_Alloc causes warnings on 64-bit platforms with things like ckalloc(sizeof(foo)), because sizeof returns size_t; and will break, when people start using large memory machines. Trying to allocate more than 4Gb of RAM seems ridiculous now, but just give it time...
dgpplain2004-04-06 10:47:25
Logged In: YES user_id=80530 This is a Feature Request not a bug.
dgpplain2004-04-06 10:50:00
Logged In: YES user_id=80530 See TIP 115: http://purl.org/tcl/tip/115.html for a pending proposal on this issue.
dkfplain2004-04-06 16:17:13
Logged In: YES user_id=79902 This is a known problem, but can't be fixed in 8.5 because it stamps incompatably on an enormous number of APIs. I had a look into it when doing the TIP#72 implementation, and it turns out to be even more pernicious than const-poisoning. The correct type is either 'size_t' or 'unsigned long' (depending on factors that have nothing to do with technical issues.)
kotplain2004-04-06 20:28:06
Logged In: YES user_id=173641 So, if a bug exists for too long, requests to fix it become "feature requests"? :-) Yes, wherever such a thing exists, size_t should be the replacement. That's what it was invented for -- many years ago. Something needs to be done, and quickly (preferably in 8.5 with backport available for 8.4 as a patch). Donal K. Fellows is absolutely right about the 64-bit platforms becoming more common. My client just got a FreeBSD/amd64 system, thanks in no small part to the ability to mmap large files directly, and to the possibility to have 12Gb of RAM (although we only have 2Gb right now).
dgpplain2004-04-07 05:09:34
Logged In: YES user_id=80530 Did you read TIP 115 or not?
kotplain2004-04-07 05:27:01
Logged In: YES user_id=173641 Of course, I read it. That's how I knew Donal's name :-) I'm just trying to impress the importance of this 64-bit cleanlines (and thus the 64-bit godliness) on you, guys, so that, may be, you'll think of a way to bring it in sooner... The const-poisoning was a great thing -- forcing a review of almost entire TCL code. This should be no less usefull for the programmers, and a lot more useful for the users (of big machines).
dgpplain2004-04-07 05:34:34
Logged In: YES user_id=80530 my mistake. I overlooked your smiley.
dkfplain2004-04-07 20:11:27
Logged In: YES user_id=79902 I use Tcl on big-iron too, so I really do understand.
dkfplain2004-07-07 20:47:10
Logged In: YES user_id=79902 Dup of Bug 219196
Log in (anonymous is fine) to add a comment.