Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2025-08-16
06:09 • Closed ticket [5773c78e86]: Small lrange of abstract list shimmers the source li... artifact: 02d39d413d user: apnadkarni
2025-06-09
13:47 • Ticket [5773c78e86]: 3 changes artifact: 4a63a09917 user: apnadkarni
2025-06-06
16:55
Start on TIP 649 tests. Also fix [5773c78e86]. check-in: 132cfd08e7 user: apnadkarni tags: tip-649
14:38 • Ticket [5773c78e86] Small lrange of abstract list shimmers the source list to a ... artifact: fda7a77492 user: apnadkarni
14:38 • New ticket [5773c78e86]. artifact: b728cf2685 user: apnadkarni

Small lrange of abstract list shimmers the source list to a non-abstract list

Closed / Fixed5773c78e86a515f9c981e990d1ec51d119f1024fCreated 1 year agoUpdated 1 year ago
Descriptionmarkdown2025-06-06 14:38:13

In the example below, there is no reason for the source type to be shimmered. It will result in functional correctness but memory bloat if the source list is large.

% set l [lrepeat 120 x]; 'rep $l
value is a repeatedList with a refcount of 3, object pointer at 0x1c6cb436830, internal representation 0x1c6cb40b1c0:0x78, no string representation
% lrange $l 1 10
x x x x x x x x x x
% 'rep $l
value is a list with a refcount of 3, object pointer at 0x1c6cb436830, internal representation 0x1c6ccc9f8a0:0x0, no string representation
Referenced by1
apnadkarni Ticket [5773c78e86]: 3 changes [History diff]2025-06-06 14:38:23
apnadkarnimarkdown2025-06-09 13:47:14

This is fixed in the tip-649 branch. If that TIP does not pass, this is a reminder to cherrypick the fix.

apnadkarniplain2025-08-16 06:09:26
Fixed with TIP 649 merge.
Log in (anonymous is fine) to add a comment.