From nobody Fri Jan 10 19:01:17 2025 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YV9ws1qYXz5kMVN for ; Fri, 10 Jan 2025 19:01:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YV9ws0X2bz4LCX for ; Fri, 10 Jan 2025 19:01:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736535677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=anvg4l93h52kY1ZgnmGVz2YeW3/+yDYzuSeoLaajxyY=; b=ODr8A7ouNpIlgRsepiKhIZuK6NWj0YdrvLlHVkk0ikmMqHTMyHP0bm+XmKtYsFqhyteYgb 40t7o0IvlVDzCYwbVYyjWJsgbRqBLOycff9RQwMlcPb+aNhG3ZW7Ha8ZItiIrYgjuijI6r H3XFb/ZKBZDg81h2ucJCR2aHCa4Rr7a6vqZNX38V7M4DDmSGRkjxrA6Knujvd8h5AE7gh4 +o+TLnK70JXxeMprmQP2tOQMXrq/+PeSrUSzAyvJk8+Axi1kAnwD6ldOA+MuDMjpTrBnGV F+lk+47kQZhWc8guENbVIGgLzT6IM559KMYbS1Sp6KSn3sCcJrQzeT82ujVI+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736535677; a=rsa-sha256; cv=none; b=K1vzZJGbMd7balvGGq8XKOtxVipdGQtYDL/ICS+p7nq4h8pP1/924qoGXvg2747ZzE+PNQ wIAyl0jBQQg1+PVGbnG9AXdNB3XNwZP0yMlHZ6+hF/y/ROAFQXid5KzHWx5VWCTKp2qApY UkxyK+WBxJlYFQFo5HldYf10bqjNLBy9Q8LBM3Skk0mKZgZ/b43i3eHbGQUhzWqBP9taH2 4a60gOe8KtAthZjHt8tFSGiuaLFxVd3eRPrB5nVAHwqi7UfaEbPqnmpCrNkacVGuVQIZJU hcT9t+B8TAN1c2MJ03ZPz1w9JUuBaVoctKT0DP2mklg1okuGggSw9LELd7KoZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YV9ws07ygz8mM for ; Fri, 10 Jan 2025 19:01:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 50AJ1GTk005712 for ; Fri, 10 Jan 2025 19:01:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50AJ1GJT005711 for bugs@FreeBSD.org; Fri, 10 Jan 2025 19:01:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 168213] [kernel] why is the type of ub_cnt signed in uma_int.h? Date: Fri, 10 Jan 2025 19:01:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 9.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not A Bug X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc resolution bug_status Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D168213 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org Resolution|--- |Not A Bug Status|Open |Closed --- Comment #2 from Mark Johnston --- They could be made unsigned, but the maximum values are in practice much smaller than the limits imposed by the type. In particular, ub_cnt and ub_entries are int16_t, but the largest bucket size is 256 (see bucket zone= s) and is unlikely to ever grow past 512 in the future. In this case, it's fa= irly ordinary to use signed types. --=20 You are receiving this mail because: You are the assignee for the bug.=