Skip to content
Tcl Source Code Artifact [6c6d37a7ca]
Login

Artifact [6c6d37a7ca]

Artifact 6c6d37a7caf15bb62bf958c967dafdeb02ebb66d:

Ticket change [6c6d37a7ca] - Ticket [3166410fffffffff|3166410fff] <i>&quot;out of stack space&quot; on AIX</i> status still Open with 5 other changes by nijtmans on 2011-01-28 15:06:06.
D 2011-01-28T15:06:06
J assignee nijtmans
J icomment My\sguess\sis\sthat\son\sAIX\sthere\sis\sa\sbug\sin\spointer\scomparison,\ssuch\sthat\sall\spointers\sabove\sthe\s2G\sare\sconsidered\ssmaller\sthan\spointer\sbelow\s2G.\sSo,\swhenever\stwo\spointers\sare\scompared,\sone\sbelow\sand\sthe\sother\sabove\sthe\s2G\sborder,\sthe\sresult\sis\snot\scorrect.\sI\ssee\s2\spossible\ssolutions\sto\sthis:\n\n-\sFirst\ssubstracting\sthe\stwo\spointers\sresults\sin\sa\sptr_diff\stype,\n\s\swhich\sis\salways\ssigned.\sThen\swe\scan\scompare\sthis\sto\s0,\sand\n\s\sas\slong\sas\sno-one\spushed\smore\sthan\s2G\son\sthe\sstack\sthe\n\s\sresult\swill\sbe\sas\sexpected.\sWell,\s2G\sis\san\sincredable\n\s\samount,\sI\sdon't\sthink\sthere\sis\sany\smachine\swith\sa\stotal\n\s\sstack\ssize\sas\sbig\sa\shalf\sthe\savailable\smemory.\n-\sAnother\ssolution\swould\sbe\sto\scast\sthe\spointers\sto\n\s\s(size_t)\sbefore\sthe\scomparison,\sso:\n\n\s\s\s\s\s\s\s((size_t)(localIntPtr)\s>\s(size_t)(iPtr)->stackBound)\n\n\s\sThen\swe\ssimply\scorrect\sAIX's\scomparison\s'bug',\sbut\sit\n\s\slooks\smore\sugly\s;-)\n\nI\swould\sprefer\sthe\sfirst\spossibility,\sbut\ssomeone\smight\ntry\sto\sconvince\sme\sotherwise.\sAnyone?\n
J login nijtmans
J mimetype text/plain
J username nijtmans
K 3166410fffffffffffffffffffffffffffffffff
U nijtmans
Z ef3c0364053e49b12b6ae62546b597b3