Bug 13988 – simplify/cleanup rt.lifetime

Status
NEW
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2015-01-15T20:40:16Z
Last change time
2024-12-07T13:34:37Z
Assigned to
No Owner
Creator
Martin Nowak
Moved to GitHub: dmd#17288 →

Comments

Comment #0 by code — 2015-01-15T20:40:16Z
The module suffers a lot from bad code. It's mildly complex but due to missing abstractions/separations the complexity is spread throughout code of completely different concerns. This makes it hard to change/review so people tend to stuff new code into the existing mess. 3 concrete points: Reduce code duplication for different branches that simply handle different array lengths. Turn the implicit smallpad, medpad, largepad layouts into structs and use those (combined with casts) to avoid all the void* arithmetic. Turn the block info cache into a struct.
Comment #1 by robert.schadek — 2024-12-07T13:34:37Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17288 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB