Landing: 3ea80709b1d0

Project / Subsystem

binutils / x86/disasm

Date

2026-05-22

Author

Jan Beulich <jbeulich@sourceware.org>

Commit

3ea80709b1d0c2d126f298a7ec3033cf9fbdb972

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
x86/disasm
patch_id
commit_hash
3ea80709b1d0c2d126f298a7ec3033cf9fbdb972
source_type
public_inbox
headline
X86/disasm: Make immediate annotation flag thread-local
tldr
The "annotate immediates" flag in the x86 disassembler is now thread-local, preventing unintended side effects in multi-threaded contexts.
author
Jan Beulich <jbeulich@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • disassembler
  • x86
  • thread-safety
discussion_id_link
bugzilla_pr
date
2026-05-22T00:00:00.000Z

The “annotate immediates” flag in the x86 disassembler was changed from a global variable to a thread-local variable within the instr_info struct. This prevents unintended side effects in multi-threaded scenarios where disassembly functions are used concurrently. The change ensures that the annotation setting is specific to each disassembly operation.