[RTEMS Project] #2493: Remove notepads

RTEMS trac trac at rtems.org
Wed Dec 23 21:10:03 UTC 2015


#2493: Remove notepads
-----------------------------+-------------------
 Reporter:  sebastian.huber  |       Owner:
     Type:  defect           |      Status:  new
 Priority:  normal           |   Milestone:  4.12
Component:  General          |     Version:  4.12
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+-------------------

Comment (by aunali1):

 Notepads where a feature of RTEMS' tasks that simply functioned in the
 same way as POSIX keys
 or threaded local storage (TLS). They were introduced well before per task
 variables, which
 are also deprecated, and were barely used in favor of their POSIX
 alternatives.

 In addition to their scarce usage, Notepads took up unnecessary memory.
 For each task:
  - 16 32-bit integers were allocated.
  - A total of 64 bytes per task per thread.

 This is especially critical in low memory and safety-critical
 applications.

 They are also defined as uint32_t, and therefore are not guaranteed to
 hold a pointer.

 Lastly, they are not portable solutions for SMP and uniprocessor systems,
 like POSIX
 keys and TLS.

 I am closing this ticket once the patch is committed.

--
Ticket URL: <http://devel.rtems.org/ticket/2493#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list