Code analysis violations Bug in scheduler - race during with worker thread shutdown.
Showing the changes to src/vm/vm_exception_handler.cpp (1 of 18 files). Show all
Unified · Split
| @@ -43,12 +43,12 @@ std::tuple<const handler_t *, vm_frame_t *, vm_pc_t> disvm::runtime::find_except · 42 unmodified lines | ||
| 43 | 43 | if (exception_id.compare_to(exception_name) == 0) |
| 44 | 44 | { |
| 45 | 45 | debug::log_msg(debug::component_trace_t::exception, debug::log_level_t::debug, "end: handler: match: %d\n", unwind_depth); |
| 46 | − return std::tuple<const handler_t *, vm_frame_t *, std::size_t>{ &handler, current_frame, exception.pc }; | |
| 46 | + return std::make_tuple(&handler, current_frame, exception.pc); | |
| 47 | 47 | } |
| 48 | 48 | else if (exception_name == nullptr && exception.pc != runtime_constants::invalid_program_counter) |
| 49 | 49 | { |
| 50 | 50 | debug::log_msg(debug::component_trace_t::exception, debug::log_level_t::debug, "end: handler: fallback: %d\n", unwind_depth); |
| 51 | − return std::tuple<const handler_t *, vm_frame_t *, std::size_t>{ &handler, current_frame, exception.pc }; | |
| 51 | + return std::make_tuple(&handler, current_frame, exception.pc); | |
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | } |