Opened 2 months ago

#54 new task

Split global variables by compilation unit.

Reported by: mornfall Owned by: mornfall
Priority: major Milestone: 4.3
Component: VM Keywords:
Cc:

Description

This would be a straightforward static heuristic and could save considerable memory for many programs (especially C++ programs where a whole bunch of units from libc++ contain what are essentially read-only but non-constant globals). This would also allow reverting locale.cpp to its original upstream version without considerable loss of efficiency.

The cost would be a level of indirection (the current 'globals' object would become a vector of pointers) and more complicated ptr2i caching machinery.

Change History (0)

Note: See TracTickets for help on using tickets.