[DynInst_API:] [dyninst/dyninst] 0fc0a6: Fix race condition in parsing w/ isSyscall().


Date: Wed, 12 Apr 2023 11:05:26 -0700
From: Bolo -- Josef Burger <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 0fc0a6: Fix race condition in parsing w/ isSyscall().
  Branch: refs/heads/bolo/race3
  Home:   https://github.com/dyninst/dyninst
  Commit: 0fc0a6bc6c484eab7b86ba135af5d24e06ed3725
      https://github.com/dyninst/dyninst/commit/0fc0a6bc6c484eab7b86ba135af5d24e06ed3725
  Author: Bolo <bolo@xxxxxxxxxxx>
  Date:   2023-04-04 (Tue, 04 Apr 2023)

  Changed paths:
    M parseAPI/src/IA_IAPI.C
    M parseAPI/src/IA_IAPI.h

  Log Message:
  -----------
  Fix race condition in parsing w/ isSyscall().

Move isSyscall() scoped static variable to the existing
IA_IAPI thread safe initizlizer.

This eliminate a scoped static race condition in the parser.
This fix resolves a 1% rate of parsing failures.


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 0fc0a6: Fix race condition in parsing w/ isSyscall()., Bolo -- Josef Burger <=