Tcl Source Code

Check-in [bd7a70e510]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add Panic call to better identify where iogt-2.5 goes wrong.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:bd7a70e51057ebab69ee2bf528241e221269caa3
User & Date: dgp 2014-05-06 15:23:43
Context
2014-05-06
17:33
Symptom relief. Make test stop panicking. This is not the proper final answer. ChannelBuffer manag... check-in: 299eab2396 user: dgp tags: trunk
15:23
Add Panic call to better identify where iogt-2.5 goes wrong. check-in: bd7a70e510 user: dgp tags: trunk
14:43
Merge 8.5. New test iogt-2.5 panics. check-in: ad0fc36bba user: dgp tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to generic/tclIO.c.

2307
2308
2309
2310
2311
2312
2313



2314
2315
2316
2317
2318
2319
2320
    return bufPtr;
}

static void
PreserveChannelBuffer(
    ChannelBuffer *bufPtr)
{



    bufPtr->refCount++;
}

static void
ReleaseChannelBuffer(
    ChannelBuffer *bufPtr)
{







>
>
>







2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
    return bufPtr;
}

static void
PreserveChannelBuffer(
    ChannelBuffer *bufPtr)
{
    if (bufPtr->refCount == 0) {
	Tcl_Panic("Reuse of ChannelBuffer!");
    }
    bufPtr->refCount++;
}

static void
ReleaseChannelBuffer(
    ChannelBuffer *bufPtr)
{