Ignore:
Timestamp:
Feb 25, 2026, 12:56:30 AM (3 days ago)
Author:
Matthew Au-Yeung <mw2auyeu@…>
Branches:
stuck-waitfor-destruct
Children:
88bb0b4
Parents:
a0548c2
Message:

Revert "Add a generated hash to fix stuck waitfor comparing static inline mutex destructors"

This reverts commit a30fceb1a73c4ef2bbee39a2b5406da881f51111.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/Keywords.cpp

    ra0548c2 r44940ee  
    2929#include "Common/Examine.hpp"
    3030#include "Common/Utility.hpp"
    31 #include "Concurrency/MutexFuncHash.hpp"
    3231#include "Common/UniqueName.hpp"
    3332#include "ControlStruct/LabelGenerator.hpp"
     
    10781077
    10791078        // In reverse order:
    1080         // monitor_dtor_guard_t __guard = { __monitor, func, func_id, false };
     1079        // monitor_dtor_guard_t __guard = { __monitor, func, false };
    10811080        mutBody->push_front(
    10821081                new ast::DeclStmt( location, new ast::ObjectDecl(
     
    10951094                                                        generic_func,
    10961095                                                        ast::ExplicitCast ) ),
    1097                                         new ast::SingleInit( location,
    1098                                                 Concurrency::hashMangleExpr( location, func ) ),
    10991096                                        new ast::SingleInit( location,
    11001097                                                ast::ConstantExpr::from_bool( location, false ) ),
     
    11781175                                                ast::ExplicitCast
    11791176                                        ) ),
    1180                                         new ast::SingleInit( location,
    1181                                                 Concurrency::hashMangleExpr( location, func ) ),
    11821177                                },
    11831178                                {},
     
    14801475
    14811476ast::CompoundStmt * MutexKeyword::addThreadDtorStatements(
    1482                 const ast::FunctionDecl* func, const ast::CompoundStmt * body,
     1477                const ast::FunctionDecl*, const ast::CompoundStmt * body,
    14831478                const std::vector<const ast::DeclWithType * > & args ) {
    14841479        assert( args.size() == 1 );
     
    14921487        const CodeLocation & location = mutBody->location;
    14931488
    1494         // thread_dtor_guard_t __guard = { this, func_id, intptr( 0 ) };
     1489        // thread_dtor_guard_t __guard = { this, intptr( 0 ) };
    14951490        mutBody->push_front( new ast::DeclStmt(
    14961491                location,
     
    15051500                                                new ast::CastExpr( location,
    15061501                                                        new ast::VariableExpr( location, arg ), argType ) ),
    1507                                         new ast::SingleInit( location,
    1508                                                 Concurrency::hashMangleExpr( location, func ) ),
    15091502                                        new ast::SingleInit(
    15101503                                                location,
Note: See TracChangeset for help on using the changeset viewer.