Commit 8b90755
Brent Burley
Use placement new for PtexHashMap TableHeader and Entry objects
Placement new is required by C++ to see objects allocated with malloc as
objects and not just raw memory. Doing so allows the compiler to
properly analyze object lifetimes and usage.
Without the placement new, and with dead code / dead store elimination
enabled, an unexplained crash was occuring with GCC 15 when running the
regression tests. With this change, the crash no longer appears.1 parent 0653655 commit 8b90755
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
270 | 275 | | |
271 | 276 | | |
272 | 277 | | |
| |||
0 commit comments