Skip to content
Tcl Source Code View Ticket
Login

View Ticket

async-4.3: huge memory hog

Closed / Fixed1056311fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 42 days ago
Descriptionplain2004-10-28 18:41:28
The test async-4.3 consumes very
large amounts of memory, and on
underpowered systems can cause
a `make test` to fail.
Referenced by1
  • fdf3d4acf3Fix the knownMsvcBug constraint in async.test, inverted since [c0c61fa7cf]: async-4.3 ran only on MSVC builds, where it is known to fail, and was skipped everywhere else. See [3544685fff] and [1056311fff]. check-in2026-10-17 06:23:12
dkf Ticket [1056311fff]: 1 change [History diff]2005-01-14 21:29:45
dgpplain2005-01-26 21:51:51
Logged In: YES 
user_id=80530

davidw expressed interest
in this issue on the chat.
wliaoplain2006-10-21 02:03:24
Logged In: YES 
user_id=863965

For my tests, I had to make the string repeat value smaller.
The original value took so long to run and used so much
memory that it masked the failure of the underlying test.
dkf Ticket [1056311fff]: 1 change [History diff]2008-12-22 18:38:34
mistachkinplain2009-11-02 12:22:12
This bug is not a duplicate of 1774689; however, they are related and will both be fixed at the same time.  This test and the underlying C code is going to need major revision(s).
mistachkin Ticket [1056311fff]: 1 change [History diff]2009-11-02 12:22:13
serhiy.storchakawiki2026-10-17 06:24:49

Since [c0c61fa7cf] async-4.3 runs only on MSVC builds (the knownMsvcBug constraint was inverted), so it did not use memory elsewhere; fixed in branch async-test-msvc-constraint. The memory is for compiling the 1500000 commands. With 150000 they run in 0.7 ms here, less than the 1 ms after which [testasync marklater] fires the event, so the test would no longer check the delivery inside the sequence.

serhiy.storchaka Closed ticket [1056311fff]. [History diff]2026-10-19 11:58:16
serhiy.storchaka Ticket [1056311fff]: 3 changes [History diff]2026-10-22 17:19:27
Log in (anonymous is fine) to add a comment.