Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Ticket #19 (new defect)

Opened 10 years ago

Bits are not updated in realloc() in certain cases

Reported by: llucax Assigned to: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: realloc, bits Cc:

Description

In GC.reallocNoSync(ptr, size, bits) there are certain cases where the passed bits are not updated (for example if the original chunk of memory assigned to ptr has enough room to host the new size).

If this is intended behavior, I think it should be documented.