[tor-bugs] #10116 [Tor]: Avoid memory allocation in OOM handler

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Aug 15 17:24:35 UTC 2014


#10116: Avoid memory allocation in OOM handler
-----------------------------+-----------------------------------------
     Reporter:  nickm        |      Owner:
         Type:  enhancement  |     Status:  needs_revision
     Priority:  normal       |  Milestone:  Tor: 0.2.6.x-final
    Component:  Tor          |    Version:
   Resolution:               |   Keywords:  tor-relay oom 026-triaged-1
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+-----------------------------------------
Changes (by nickm):

 * status:  needs_review => needs_revision


Comment:

 Replying to [comment:5 arma]:
 > Replying to [ticket:10116 nickm]:
 > > Options here include:
 > >   * Turn global_circuitlist into an array (smartlist) structure.
 >
 > What are the arguments in favor of the linked list and against a
 smartlist?

 The only argument I can think of is that the linked-list code already
 exists, and that if we go with a smartlist instead, we might screw up
 somehow doing the conversion.

 IOW, I think we should take the conversion-to-smartlist approach.  I can
 whip up a patch.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10116#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list