mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Disable the smallest UMA bucket size on 32-bit platforms.
With r357314, sizeof(struct uma_bucket) grew to 16 bytes on 32-bit platforms, so BUCKET_SIZE(4) is 0. This resulted in the creation of a bucket zone for buckets with zero capacity. A more general fix is planned, but for now this bandaid allows 32-bit platforms to boot again. PR: 243837 Discussed with: jeff Reported by: pho, Jenkins via lwhsu Tested by: pho Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
35beedae40
commit
36cb95c736
1 changed files with 2 additions and 0 deletions
|
|
@ -239,7 +239,9 @@ struct uma_bucket_zone {
|
|||
#define BUCKET_MIN BUCKET_SIZE(4)
|
||||
|
||||
struct uma_bucket_zone bucket_zones[] = {
|
||||
#ifndef __ILP32__
|
||||
{ NULL, "4 Bucket", BUCKET_SIZE(4), 4096 },
|
||||
#endif
|
||||
{ NULL, "6 Bucket", BUCKET_SIZE(6), 3072 },
|
||||
{ NULL, "8 Bucket", BUCKET_SIZE(8), 2048 },
|
||||
{ NULL, "12 Bucket", BUCKET_SIZE(12), 1536 },
|
||||
|
|
|
|||
Loading…
Reference in a new issue