MCPcopy Create free account
hub / github.com/Singular/Singular / omIsInKeptAddrList

Function omIsInKeptAddrList

omalloc/omDebugTrack.c:743–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741#endif
742
743int omIsInKeptAddrList(void* addr)
744{
745 void* ptr = om_KeptAddr;
746 int ret = 0;
747
748#ifdef OM_HAVE_TRACK
749 if (omIsTrackAddr(addr))
750 addr = omOutAddr_2_TrackAddr(addr);
751#endif
752
753 if (om_LastKeptAddr != NULL)
754 *((void**) om_LastKeptAddr) = om_AlwaysKeptAddrs;
755
756 while (ptr != NULL)
757 {
758 if (ptr == addr)
759 {
760 ret = 1; break;
761 }
762 ptr = *((void**) ptr);
763 }
764
765 if (om_LastKeptAddr != NULL)
766 *((void**) om_LastKeptAddr) = NULL;
767
768 return ret;
769}
770#endif /*!OM_NDEBUG*/
771#endif

Callers 4

omDoCheckTrackAddrFunction · 0.85
omDoCheckLargeAddrFunction · 0.85
omDoCheckBinAddrFunction · 0.85
omIterateTroughBinAddrsFunction · 0.85

Calls 1

omOutAddr_2_TrackAddrFunction · 0.85

Tested by

no test coverage detected