Neil wrote:

Henri Sivonen wrote:

Any chance static atoms could reside as plain old static C data structures in the data segment of libxul.so instead of being heap-allocated?

At least under MSVC, they have vtables, so they need to be constructed, so they're not static. Note that their string storage is static, through the use of fake string buffers (possibly this should be switched to fake literal strings).

Perhaps we could probably use string buffers directly as atoms. Static atoms would be replaced by their underlying fake string buffers (perhaps identified by a zero refcount?) while other atoms would be refcounted buffers typically from their original nsString objects.

--
Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to