BIND 10 #2088: introduce MemorySegment class

BIND 10 Development do-not-reply at isc.org
Fri Jul 6 08:09:45 UTC 2012


#2088: introduce MemorySegment class
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:  UnAssigned
  jinmei                             |                Status:  reviewing
                       Type:  task   |             Milestone:
                   Priority:         |  Sprint-20120717
  medium                             |            Resolution:
                  Component:  data   |             Sensitive:  0
  source                             |           Sub-Project:  DNS
                   Keywords:         |  Estimated Difficulty:  4
            Defect Severity:  N/A    |           Total Hours:  0
Feature Depending on Ticket:         |
  scalable inmemory                  |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------

Comment (by jinmei):

 Some quick comments:

 - I myself am not really sure, but I guess we'd probably like allocate
   to throw when it fails to allocate the memory.
 - what if ptr is NULL in deallocate?  What if size is too large?
 - unittest: test body can be in an unnamed namespace, and we normally
   do so.
 - there are some style issues, mainly about the position of *, e.g.
 {{{#!cpp
 +    void *ptr = malloc(size);
 }}}

-- 
Ticket URL: <http://bind10.isc.org/ticket/2088#comment:9>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list