Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366639 - move 'atexit()' call in System to a "lastFxn" instead of module_startup
Summary: move 'atexit()' call in System to a "lastFxn" instead of module_startup
Status: CLOSED FIXED
Alias: None
Product: RTSC
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Karl Wechsler CLA
QA Contact:
URL:
Whiteboard: target:3.23.01
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-13 16:55 EST by Karl Wechsler CLA
Modified: 2013-01-24 15:11 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Wechsler CLA 2011-12-13 16:55:03 EST
For ELF implementations, atexit() calls malloc(), we would like to defer this call to atexit() until after all the modules have been started and heaps have been initialized.  This will allow use of different types of heaps by the SYS/BIOS malloc() function.
Comment 1 Sasha Slijepcevic CLA 2012-02-02 21:15:52 EST
- fixed in xdc-y19
Comment 2 Alan DeMars CLA 2012-02-09 18:42:49 EST
Verify Pass

Using Beyond Compare, I reviewed and approve of the changes in the System.xdc, System.xs, and System.c.

The recently completed (2/9/2012) successful regressions tests built against SYS/BIOS 6.33.02.30 demonstrate that this change is benign when used with a corresponding SYS/BIOS build.
Comment 3 Dave Russo CLA 2013-01-24 15:11:54 EST
xdctools 3.23.05 GA is available from here: http://www.sanb.design.ti.com/tisb_releases/XDCtools/3_23_05_61/