-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use placement new for ETSTimer - no heap fragmentation (#6164)
* Use placement new for ETSTimer - no heap fragmentation, new/delete semantics unchanged. * Make change completely invisible to derived classes at compile-time. * Fix "sizeof() incomplete type ETSTimer" error. * C++ reinterpret_cast<> instead of C-style cast. void* instead of uint32_t - fixes x86_64 server compiles. * Simplify casts. * Revert to complete placement new treatment of ETSTimer member. * Cleanup includes * Fix omitted casts * Change per review #6164 (review) * wtf - local compile didn't catch this sloppy mistake * Resolves review #6164 (comment) * Reviewer stated that floating point operations are inlined, software operations - reduce number of code spots to one.
- Loading branch information
Showing
2 changed files
with
49 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters