[Bug 3598580]: Tcl_ListObjReplace may release deleted elements too early
[Bug 3598580]: Tcl_ListObjReplace may release deleted elements too early
merge trunk
restore old refcounts in TCL_ERROR case.
For Tcl9, do a real Tcl_DecrRefCount
restore refcounts as they were before the Tcl_ListObjReplace call, in the error situation.
In Tcl9, make this a true Tcl_DecrRefCount, which properly cleans objects with refCount 0
restore refcounts as they were before the Tcl_ListObjReplace call, in the error situation. 
In Tcl9, make this a true Tcl_DecrRefCount, which properly cleans objects with refCount 0
merge trunk
fix tm.tcl to include tcl8 locations, and fix corresponding test-cases
two more places where refCount was assumed to be a signed value. In Tcl9 that will probably be not true any more.
Working towards more efficient treatment of non-bytecoded ensemble subcommands.
Marked some string subcommands as obsolete, following discussion on tcl-core.
test Tcl_GetErrorLine() forwards/backwards compatibility in pkgb.so as well
Marked some string subcommands as obsolete, following discussion on tcl-core.
Don't free ctrl.script if thread creation fails: it is a constant string "testthread wait" normally.
test Tcl_GetErrorLine() forwards/backwards compatibility in pkgb.so as well. 
Marked some string subcommands as obsolete, following discussion on tcl-core. 
Don't free ctrl.script if thread creation fails: it is a constant string "testthread wait" normally.
test Tcl_GetErrorLine() forwards/backwards compatibility in pkgb.so as well. 
Don't free ctrl.script if thread creation fails: it is a constant string "testthread wait" normally.
merge trunk
Passing more tests.
All tests pass except one; not sure what's wrong there.