Jason Rhinelander
353615f77e
Make init_holder do registration, and rename to init_instance
...
The instance registration for offset base types fails (under macOS, with
a segfault) in the presense of virtual base types. The issue occurs
when trying to `static_cast<Base *>(derived_ptr)` when `derived_ptr` has
been allocated (via `operator new`) but not initialized.
This commit fixes the issue by moving the addition to
`registered_instances` into `init_holder` rather than immediately after
value pointer allocation.
This also renames it to `init_instance` since it does more than holder
initialization now. (I also further renamed `init_holder_helper` to
`init_holder` since `init_holder` isn't used anymore).
Fixes #959 .
2017-07-28 20:39:33 -04:00
..
2017-06-27 10:38:41 +02:00
2017-06-24 21:59:55 +02:00
2017-06-27 10:38:41 +02:00
2017-03-10 15:42:42 +01:00
2017-06-12 09:56:55 -03:00
2017-01-31 17:05:44 +01:00
2017-06-27 10:38:41 +02:00
2017-07-05 12:27:14 -04:00
2017-06-10 16:44:21 +02:00
2017-05-29 03:13:55 +02:00
2017-05-29 02:03:58 +02:00
2017-07-23 11:02:43 -04:00
2017-07-23 11:02:43 -04:00
2017-06-24 12:59:46 -04:00
2017-07-28 20:39:33 -04:00
2017-06-27 10:38:41 +02:00
2017-04-29 10:43:17 -04:00
2017-03-11 23:04:16 -04:00
2017-03-11 23:04:16 -04:00
2017-07-23 00:32:58 -04:00
2017-07-23 00:32:58 -04:00
2016-12-14 20:40:49 +01:00
2016-12-14 20:40:49 +01:00
2017-06-27 10:38:41 +02:00
2017-07-12 11:50:40 -04:00
2017-03-08 12:32:42 -05:00
2017-03-08 12:32:42 -05:00
2017-06-29 11:31:54 +02:00
2017-06-29 11:31:54 +02:00
2017-04-29 16:35:28 +02:00
2017-04-29 16:35:28 +02:00
2016-11-20 21:21:54 +01:00
2017-05-08 20:46:16 +02:00
2016-08-19 16:31:48 +02:00
2017-06-27 10:38:41 +02:00
2017-06-27 10:38:41 +02:00
2017-01-31 17:24:41 +01:00
2017-03-10 15:42:42 +01:00
2017-07-16 11:04:43 -04:00
2017-07-16 11:04:43 -04:00
2017-06-27 10:38:41 +02:00
2017-06-27 10:38:41 +02:00
2017-07-28 20:39:33 -04:00
2017-07-28 20:39:33 -04:00
2017-05-08 01:50:21 +02:00
2017-05-08 01:50:21 +02:00
2017-05-10 11:36:24 +02:00
2017-05-10 11:36:24 +02:00
2017-05-24 20:43:41 -04:00
2017-05-24 20:43:41 -04:00
2016-09-03 17:34:41 -04:00
2017-02-03 20:47:17 -05:00
2017-06-27 10:38:41 +02:00
2017-06-27 10:38:41 +02:00
2017-01-04 15:05:20 +01:00
2016-12-16 15:00:46 +01:00
2017-06-27 10:38:41 +02:00
2017-06-27 10:38:41 +02:00
2017-06-27 10:38:41 +02:00
2017-06-27 10:38:41 +02:00
2017-06-27 10:38:41 +02:00
2017-06-27 10:38:41 +02:00
2017-07-05 12:27:14 -04:00
2017-05-25 10:51:28 -04:00
2017-07-16 11:04:43 -04:00
2017-07-16 11:04:43 -04:00
2017-06-27 10:38:41 +02:00
2017-06-27 10:38:41 +02:00