Skip to content

std: remove unnecessary sysctl caching on FreeBSD - #163975

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
joboet:freebsd_sysctl_cache
Oct 10, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
joboet:freebsd_sysctl_cache

Conversation

@joboet

@joboet joboet commented Oct 8, 2026

Copy link
Copy Markdown
Member

The install_main_guard function is only called once, so there is no use in caching the value returned from the sysctlbyname.

@joboet joboet added O-freebsd Operating system: FreeBSD A-stack-probe Area: Stack probing and guard pages labels Oct 8, 2026
@rustbot rustbot added O-unix Operating system: Unix-like S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Oct 8, 2026
@rustbot

rustbot commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

r? @clarfonthey

rustbot has assigned @clarfonthey.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 13 candidates
  • Random selection from ChrisDenton, JohnTitor, Mark-Simulacrum, clarfonthey

@clarfonthey

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@rust-bors

rust-bors Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 6e841c3 has been approved by clarfonthey

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 10, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Oct 10, 2026
std: remove unnecessary sysctl caching on FreeBSD

The `install_main_guard` function is only called once, so there is no use in caching the value returned from the `sysctlbyname`.
@rust-bors rust-bors Bot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 10, 2026
@rust-bors

rust-bors Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

💔 Test for be82cc6 failed: CI. Failed job:

@clarfonthey

Copy link
Copy Markdown
Contributor

@bors retry

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 10, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 10, 2026
Rollup of 3 pull requests

Successful merges:

 - #164051 (Make `NonNull::{read,write}_volatile` unstably const.)
 - #154170 (Stabilize `ptr::try_cast_aligned`)
 - #163975 (std: remove unnecessary sysctl caching on FreeBSD)
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

A job failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)

@rust-bors
rust-bors Bot merged commit 5d793b0 into rust-lang:main Oct 10, 2026
14 of 15 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Oct 10, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 10, 2026
Rollup merge of #163975 - joboet:freebsd_sysctl_cache, r=clarfonthey

std: remove unnecessary sysctl caching on FreeBSD

The `install_main_guard` function is only called once, so there is no use in caching the value returned from the `sysctlbyname`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-stack-probe Area: Stack probing and guard pages O-freebsd Operating system: FreeBSD O-unix Operating system: Unix-like S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants