Ticket #148 (closed patch: fixed)
Zero PMC_struct_val when allocating objects
| Reported by: | donaldh | Owned by: | whiteknight |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Version: | |
| Severity: | medium | Keywords: | pmc gc |
| Cc: | Language: | ||
| Patch status: | Platform: | all |
Description
PMC_struct_val was not zeroed when taken off the free list. That means that allocated objects were pointing back into the free list.
pointer.pmc was actually casting PMC_struct_val to a custom mark function and trying to call it.
The fix is to zero PMC_struct_val when taking the object off the free list.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

