You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Circular dependency between iocore and tscore #9768
If you try to run tests without doing a full build first, the build fails because of ordering issues:
$ make -j4 check
...
make[3]: Entering directory '/home/jpeach/src/trafficserver/src/tscore'
...
make[3]: *** No rule to make target '../../iocore/eventsystem/libinkevent.a', needed by 'test_tscore'. Stop.
However, it's not possible to re-order the build so that this works, because iocore and tscore depend on each other.
In tscore, the MTHashTable class uses ProxyMutex from iocore for locking. ProxyMutex pulls in EThread and all sorts of other iocore symbols. iocore depends on tscore all over the place, which seems reasonable and intended.
AFAICT, MTHashTable is only used in one place (QUIC support in iocore, see #2478).
Activity
jpeach commentedon Jun 2, 2023
Looks like a reasonable solution could be to move
MTHashTableinto iocore as a private implementation detail.jpeach commentedon Jun 3, 2023
Since internal QUIC is a red herring (see #9670), we can just remove MTHashTable again.
jpeach commentedon Jun 3, 2023
Ugh, except that some of the QUIC code is used? 🙄
Break the circular dependency between iocore and tscore.
Break the circular dependency between iocore and tscore.
Break the circular dependency between iocore and tscore. (#9770)