Removing cache of decoded lines and returning shared_ptr (#953)
Šī revīzija ir iekļauta:
1 vecāks
8da0c35079
revīzija
a045947a89
5 files changed
+28
-42
No files matched your search
@@ -117,7 +117,7 @@ struct isa_map_elem_t
|
||||
{
|
||||
std::atomic<size_t> hitcount{0};
|
||||
std::atomic<size_t> latency{0};
|
||||
std::shared_ptr<Instruction> code_line{nullptr};
|
||||
std::unique_ptr<Instruction> code_line{nullptr};
|
||||
};
|
||||
|
||||
struct ToolData
|
||||
@@ -332,7 +332,7 @@ isa_callback(char* isa_instruction,
|
||||
C_API_BEGIN
|
||||
assert(userdata && "ISA callback passed null!");
|
||||
|
||||
std::shared_ptr<Instruction> instruction;
|
||||
std::unique_ptr<Instruction> instruction;
|
||||
|
||||
{
|
||||
std::unique_lock<std::shared_mutex> unique_lock(tool->isa_map_mut);
|
||||
|
||||
Reference in new issue
Block a user