Skip to content
Tcl Source Code Artifact [51f9d8af10]
Login

Artifact [51f9d8af10]

Artifact 51f9d8af1041fead7e5e896e16f2704c7d257a06:

Manifest of check-in [51f9d8af10] - Fix a bug where global precompiled code (A) called from a precompiled procedure causes the core to recompile (A), triggering the trap laid inside, i.e. 'error "called a copy of compiled code"'. Example ----------------------ex1.tcl proc init {} { source ex2.tcl } init ----------------------ex2.tcl puts a ---------------------- When run as precompiled code the 'puts a' is not executed, only the trap. Fixed by enclosing the offending code into a guard which prevents its execution for precompiled code. The change passes the entire testsuite. by andreask on 2011-11-21 18:23:16.
B 6941a89e57df636e8fc6164d4e2e6b95429aa470
C Fix\sa\sbug\swhere\sglobal\sprecompiled\scode\s(A)\scalled\sfrom\sa\sprecompiled\nprocedure\scauses\sthe\score\sto\srecompile\s(A),\striggering\sthe\strap\slaid\ninside,\si.e.\s'error\s"called\sa\scopy\sof\scompiled\scode"'.\n\nExample\n----------------------ex1.tcl\nproc\sinit\s{}\s{\n\s\s\s\ssource\sex2.tcl\n}\ninit\n----------------------ex2.tcl\nputs\sa\n----------------------\n\nWhen\srun\sas\sprecompiled\scode\sthe\s'puts\sa'\sis\snot\sexecuted,\sonly\sthe\strap.\n\nFixed\sby\senclosing\sthe\soffending\scode\sinto\sa\sguard\swhich\sprevents\sits\nexecution\sfor\sprecompiled\scode.\sThe\schange\spasses\sthe\sentire\stestsuite.\n
D 2011-11-21T18:23:16.708
F ChangeLog 83dab7a4632ef79ab0be29058ad733642af027e2
F changes b6180d198286b2193d3c02bb163a148bbef8ae28
F generic/tclBasic.c 6b6c961b0debf9ef6726aa6b9533207450e50b66
F generic/tclExecute.c 809c31e272addd55bab756b54cf4e4ab364f45a4
F generic/tclPathObj.c 8c8cb92363dda5791e263a4d1ea4eb46334e7b22
F generic/tclThreadTest.c 96562ce2b1b305964cd2437579ec7a0693194c18
F library/http/http.tcl 76878f8dcb9fb80b197063a74e350fc991fa391a
F library/http/pkgIndex.tcl 6a49be6726ecbabab29c75a1d1c64724e7f97765
F tests/encoding.test cfc56de9168c2205875374780e6324038a32e1ef
F tests/fileSystem.test 84a2d419f9f02403f98d7fd6d1261b599f1725bf
F tests/safe.test b56c721d24adc21c59f72908320dd3809f3782fa
F tests/stringObj.test 1639d4475f8f5a05724e96fcc91fafba76926011
F tests/thread.test 6fa1fe093b46bcc93fd83e8bf9a93f0e7020199a
F tests/unixNotfy.test 697007cb2f5c42f11fd7315b195929c95dc55205
F tests/util.test d9945dbdf885eb888720a72f04dd4d39deb945e4
F tests/zlib.test 5f1b7c33f0922ebade76197c4b645ed12faa6e6b
F unix/Makefile.in 7655fabba5902f49864d1394a47f0202cee200eb
F unix/tclUnixCompat.c bdde667f938bc649b00120a86cf1942a35122f72
F unix/tclUnixTest.c 2010dd78c99b7cef505aad0b78ce87d0b2b0938c
F unix/tclXtTest.c ec67046f0618b0eef8f407c6ce486af9cb567990
F win/Makefile.in ecf4d5746330db1b688d5aab4809992a524c7208
F win/tclWinConsole.c 9fc584581d779558ea95dada542d133975aa5c12
F win/tclWinError.c 145e739e48cb942d02bd255f6a62d6604d09dcb3
P 0a6cf58d8f69838d99a0c02c8d7eed800f135a0e
R 2edfc03bab93445777886e2e337e4298
U andreask
Z b2895ae2437ee2ff069acd73a727c3e6