# std.mem.Allocator: keep the undefined memset · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/36e9b0f0261a5421f22dbf17f513a8c2f685c5d3)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 36e9b0f0261a5421f22dbf17f513a8c2f685c5d3

Requested commit: 36e9b0f0261a5421f22dbf17f513a8c2f685c5d3

Commit: 36e9b0f0261a5421f22dbf17f513a8c2f685c5d3

Tree: 62e7d47f13e388f4db799b597a7617b80c2d9d48

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.mem.Allocator: keep the undefined memset

Reversal on the decision: the Allocator interface is the correct place
for the memset to undefined because it allows Allocator implementations
to bypass the interface and use a backing allocator directly, skipping
the performance penalty of memsetting the entire allocation, which may
be very large, as well as having valuable zeroes on them.

closes #4298

```

## Parents

- [2c5113f6d1ee9d5041d9d79cfbe13e6bea2aff56](https://git.cafe/gitcafe/zig/commit/2c5113f6d1ee9d5041d9d79cfbe13e6bea2aff56?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/36e9b0f0261a5421f22dbf17f513a8c2f685c5d3?format=markdown)
