[DynInst_API:] [dyninst/dyninst] 78cb21: The _func_cnt member variable in class ParseAPI::B...


Date: Fri, 12 Apr 2019 14:19:25 -0700
From: Xiaozhu Meng <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 78cb21: The _func_cnt member variable in class ParseAPI::B...
  Branch: refs/heads/pp_springboard
  Home:   https://github.com/dyninst/dyninst
  Commit: 78cb21106399fa9b336e964231f4036a2ec30ba7
      https://github.com/dyninst/dyninst/commit/78cb21106399fa9b336e964231f4036a2ec30ba7
  Author: Xiaozhu Meng <xmeng@xxxxxxxxxxx>
  Date:   2019-04-12 (Fri, 12 Apr 2019)

  Changed paths:
    M parseAPI/h/CFG.h
    M parseAPI/src/Block.C
    M parseAPI/src/Function.C

  Log Message:
  -----------
  The _func_cnt member variable in class ParseAPI::Block should be atomic<int>,
rather than just int. A block can be shared by multiple functions. So, when
multiple functions add/remove blocks at the same time, there will be race conditions.


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 78cb21: The _func_cnt member variable in class ParseAPI::B..., Xiaozhu Meng <=