<i>High Tcl latencies with fork() in larger systems</i> status still Open with 3 other changes
by
.
D 2023-06-30T10:03:52.316
J icomment The\supdated\sbranch\scontains\snow:\r\na)\sAdded\sauto-configuration\sof\sposix_spawnp()\r\nb)\sRemoved\sthe\sautomatic\ssetting\sof\sUSE_VFORK\sfor\smacOS\r\nc)\san\supdated\sconfigure\sscript\sto\sease\stesting\sof\sthis\sbranch\s\r\n\s\s\s(separate\scommit,\sto\sfurther\sease\scherry-picking,\snot\ssure,\s\r\n\s\s\s\swhat\sthe\stcl-core\spolicy\sfor\sconfigure\sscripts\sis)\r\n\r\nPoint\s(b)\sis\sprobably\sthe\smost\scomplex\sone,\sand\snot\sdirectly\srelated\s\r\nwith\sthe\sticket.\r\n\r\nThe\sautomatic\ssetting\sof\sUSE_VFORK\sin\sunix/configure.in\sis\suseless,\r\nconfusing,\sand\sdeprecated.\s\r\n\r\nBackground:\sconfigure.in\shad\sa\ssection,\swhere\sit\ssets\r\nautomatically\sUSE_VFORK\sfor\smacOS.\r\n\r\nif\stest\s"`uname\s-s`"\s=\s"Darwin"\s;\sthen\r\n...\r\n\s\s\s\sAC_DEFINE(USE_VFORK,\s1,\s[Should\swe\suse\svfork()\sinstead\sof\sfork()?])\r\n...\r\n\r\nHowever,\sDaniel\sSteffen\shas\sadded\sthe\sfollowing\ssection\s17\syears\sago\r\nwhich\seffectively\sdeactivated\sUSE_VFORK\sfor\sthe\sx86_64\splatform,\swhen\r\nit\sis\sset,\sdue\sto\sa\sbug\sreport\sin\sRDAR\s(Apple's\sbug\stracking\r\nsystem).\s16\syears\sago,\sa\ssection\swas\sadded\sto\sdeactivate\sUSE_VFORK\sfor\r\nall\splatforms\swith\sllvm-gcc-4.2\sor\snewer.\r\n\r\n/*\s\r\n\s*---------------------------------------------------------------------------\r\n\s*\sAt\spresent,\susing\svfork()\sinstead\sof\sfork()\scauses\sexecve()\sto\sfail\r\n\s*\sintermittently\son\sDarwin\sx86_64.\srdar://4685553\r\n\s*---------------------------------------------------------------------------\r\n\s*/\r\n\r\n#\s\s\sif\sdefined(__x86_64__)\s&&\s!defined(FIXED_RDAR_4685553)\r\n#\s\s\s\s\s\s\sundef\sUSE_VFORK\r\n#\s\s\sendif\s/*\s__x86_64__\s*/\r\n/*\sWorkaround\sproblems\swith\svfork()\swhen\sbuilding\swith\sllvm-gcc-4.2\s*/\r\n#\s\s\sif\sdefined\s(__llvm__)\s&&\s\\\r\n\s\s\s\s\s\s\s\s\s\s\s\s(__GNUC__\s>\s4\s||\s(__GNUC__\s==\s4\s&&\s(__GNUC_MINOR__\s>\s2\s||\s\\\r\n\s\s\s\s\s\s\s\s\s\s\s\s(__GNUC_MINOR__\s==\s2\s&&\s__GNUC_PATCHLEVEL__\s>\s0))))\r\n#\s\s\s\s\s\s\sundef\sUSE_VFORK\r\n#\s\s\sendif\s/*\s__llvm__\s*/\r\n#endif\s/*\s__APPLE__\s*/\r\n\r\nThis\smeans,\sthat\sthe\slast\s17\syears,\sUSE_VFORK\swas\snot\sdoing\sanything\r\non\smacOS.\sFurthermore,\smacOS\s12\s(Monterey,\sreleased\s2021)\sdeprecated\r\nvfork()\sofficially.\s\r\n\r\nTherefore,\sit\sis\ssafe\sto\sremove\sthe\ssetting\sof\sUSE_VFORK\sfrom\sthe\r\ndefault\sconfiguration\sfor\smacOS.\r\n\r\nIt\sis\sstill\spossible\sto\sset\sUSE_VFORK\smanually\sfor\scertain\splatforms\sif\r\nneeded.
J login gustafn3
J mimetype text/plain
K c54e4a1aeb999fe8d878eae790243739ef05517a
U gustafn3
Z eec224fa539fe79d14dd1d0aa3f60992