D 2010-09-15T17:52:43 J assignee dkf J cmimetype text/plain J comment The\scode\sbelow\sgoes\sinto\sa\sbusy\sloop\swith\s100%\scpu\susage:\n\nset\sf\s[open\s/dev/null]\nchan\sconfigure\s$f\s-blocking\s0\s-translation\sbinary\nset\sstr\s[read\s$f\s2]\nappend\sstr\s[binary\sformat\sa*\sfoo]\n\nThe\sproblem\sis\sin\sTclAppendBytesToByteArray().\sThis\sfunction\stries\sto\scalculate\sthe\sneeded\smemory\sby\sdoubling\sthe\scurrently\sallocated\sspace\suntil\sit\sis\sbig\senough.\sThat\smethod\sfails\smiserably\swhen\sstarting\swith\san\sallocated\sspace\sof\ssize\s0,\sas\sis\sthe\scase\sin\sthe\scode\sabove.\n J foundin obsolete:\s8.6b1.1 J is_private 0 J priority 5\sMedium J resolution None J status Open J submitter sbron J subsystem 12.\sByteArray\sObject J title Appending\sto\s0-length\sbyte\sarray\scauses\sbusy\sloop. J type Bug K 3067036fffffffffffffffffffffffffffffffff U sbron Z b1ea4d5789d60d15cf5a94228b12bc54