Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9f3f644b4e037d1ecce57661478a3debc66ab46dfd4781be17c3be92a6452a57
Ticket: a12ad5c4bd7efcf22906c25feb9a7bebb0aadc5a
buffer allocation on every call to Write in tclIO.c
User & Date: pooryorick on 2022-04-20 12:03:02
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    In 2014, in order to resolve segmentation faults tested for by iocmd-21.[12],
    commit [13886141d8b3acc7] added a reference counting scheme for channel
    buffers.  This scheme mostly negates the buffer recycling that
    <code>RecycleBuffer()</code> attempts.  A better fix was not readily available,
    and the cost of allocating new buffers is probably usually insignificant
    compared to the cost of IO anyway.  The result since then is that for every
    4096 bytes written to a channel, a new buffer is allocated.
    
  5. is_private changed to: "0"
  6. login: "pooryorick"
  7. priority changed to: "5 Medium"
  8. resolution changed to: "None"
  9. severity changed to: "Minor"
  10. status changed to: "Open"
  11. submitter changed to: "pooryorick"
  12. subsystem changed to: "25. Channel System"
  13. title changed to:
    buffer allocation on every call to Write in tclIO.c
    
  14. type changed to: "Bug"