Uses of Class
org.eclipse.persistence.internal.helper.type.DeadLockComponent
Packages that use DeadLockComponent
Package
Description
-
Uses of DeadLockComponent in org.eclipse.persistence.internal.helper
Methods in org.eclipse.persistence.internal.helper that return DeadLockComponentModifier and TypeMethodDescriptionprotected DeadLockComponentExplainDeadLockUtil.deadLockFoundCreateConcurrencyManagerStateDeferredThreadCouldNotAcquireWriteLock(DeadLockComponent nextThreadPartOfDeadLock, Thread threadNotAbleToAccessResource, ConcurrencyManager cacheKeyBlockingIsBuildObjectComplete) Create a deadlock component for a thread known to be stuck trying to release deferred locks.protected DeadLockComponentExplainDeadLockUtil.deadLockFoundCreateConcurrencyManagerStateReaderThreadCouldNotAcquireWriteLock(DeadLockComponent nextThreadPartOfDeadLock, Thread threadNotAbleToAccessResource, ConcurrencyManager cacheKeyThreadWantsToAcquireButCannotGet) Dto component participating in a dead lock.protected DeadLockComponentExplainDeadLockUtil.deadLockFoundCreateConcurrencyManagerStateWriterThreadCouldNotAcquireWriteLock(DeadLockComponent nextThreadPartOfDeadLock, Thread threadNotAbleToAccessResource, ConcurrencyManager cacheKeyThreadWantsToAcquireButCannotGet) Create a dead lock dto component.protected DeadLockComponentExplainDeadLockUtil.recursiveExpansionCurrentThreadBeingBlockedByActiveThreadOnCacheKey(ConcurrencyManagerState concurrencyManagerState, int recursionMaxDepth, int currentRecursionDepth, Thread currentCandidateThreadPartOfTheDeadLock, List<Thread> threadPartOfCurrentDeadLockExpansion, Set<Thread> threadsAlreadyExpandedInThePastThatWeDoNotWantToExpandAgain, ConcurrencyManager cacheKeyThreadWantsToAcquireButCannotGet, boolean currentThreadWantsToAcquireForWriting) Try to expand the current thread from the perspective that it wants a cache key that may be own for writing by a competitor thread.protected DeadLockComponentExplainDeadLockUtil.recursiveExpansionCurrentThreadBeingBlockedByActiveWriters(ConcurrencyManagerState concurrencyManagerState, int recursionMaxDepth, int currentRecursionDepth, Thread currentCandidateThreadPartOfTheDeadLock, List<Thread> threadPartOfCurrentDeadLockExpansion, Set<Thread> threadsAlreadyExpandedInThePastThatWeDoNotWantToExpandAgain, ConcurrencyManager cacheKeyThreadWantsToAcquireButCannotGet, boolean currentThreadWantsToAcquireForWriting) Try to expand the current thread from the perspective that it wants a cache key that may be own for writing by a competitor thread.protected DeadLockComponentExplainDeadLockUtil.recursiveExplainPossibleDeadLockStep01(ConcurrencyManagerState concurrencyManagerStateDto, int recursionMaxDepth, int currentRecursionDepth, Thread currentCandidateThreadPartOfTheDeadLock, List<Thread> threadPartOfCurrentDeadLockExpansion, Set<Thread> threadsAlreadyExpandedInThePastThatWeDoNotWantToExpandAgain) The algorithm expands the current thread in depth.protected DeadLockComponentExplainDeadLockUtil.recursiveExplainPossibleDeadLockStep02(ConcurrencyManagerState concurrencyManagerStateDto, int recursionMaxDepth, int currentRecursionDepth, Thread currentCandidateThreadPartOfTheDeadLock, List<Thread> threadPartOfCurrentDeadLockExpansion, Set<Thread> threadsAlreadyExpandedInThePastThatWeDoNotWantToExpandAgain) Precondition the logic ofExplainDeadLockUtil.recursiveExplainPossibleDeadLockStep01(ConcurrencyManagerState, int, int, Thread, List, Set)has been invoked and determined that we need to go deeper and expand the current thread.protected DeadLockComponentExplainDeadLockUtil.recursiveExplainPossibleDeadLockStep03ExpandBasedOnCacheKeyWantedForWriting(ConcurrencyManagerState concurrencyManagerStateDto, int recursionMaxDepth, int currentRecursionDepth, Thread currentCandidateThreadPartOfTheDeadLock, List<Thread> threadPartOfCurrentDeadLockExpansion, Set<Thread> threadsAlreadyExpandedInThePastThatWeDoNotWantToExpandAgain, ConcurrencyManager cacheKeyCurrentThreadWantsForWritingButCannotGet) We are looking at thread that we know has registered itself as wanting to acquire a write lock and not managing to make progress getting the write lock.protected DeadLockComponentExplainDeadLockUtil.recursiveExplainPossibleDeadLockStep03Scenario01CurrentWriterVsOtherWritersWriter(ConcurrencyManagerState concurrencyManagerStateDto, int recursionMaxDepth, int currentRecursionDepth, Thread currentCandidateThreadPartOfTheDeadLock, List<Thread> threadPartOfCurrentDeadLockExpansion, Set<Thread> threadsAlreadyExpandedInThePastThatWeDoNotWantToExpandAgain, ConcurrencyManager cacheKeyCurrentThreadWantsForWritingButCannotGet) Expand the possibility of the current thread wanting to acquire for writing what some other already has acquired for writing.protected DeadLockComponentExplainDeadLockUtil.recursiveExplainPossibleDeadLockStep03Scenario02CurrentWriterVsOtherReader(ConcurrencyManagerState concurrencyManagerState, int recursionMaxDepth, int currentRecursionDepth, Thread currentCandidateThreadPartOfTheDeadLock, List<Thread> threadPartOfCurrentDeadLockExpansion, Set<Thread> threadsAlreadyExpandedInThePastThatWeDoNotWantToExpandAgain, ConcurrencyManager cacheKeyCurrentThreadWantsForWritingButCannotGet) Expand the recursion exploring the possibility that the reason the current thread cannot acquire the cache key is because there are readers on the cache key.protected DeadLockComponentExplainDeadLockUtil.recursiveExplainPossibleDeadLockStep03Scenario03CurrentWriterVsCacheKeyActiveThread(ConcurrencyManagerState concurrencyManagerStateDto, int recursionMaxDepth, int currentRecursionDepth, Thread currentCandidateThreadPartOfTheDeadLock, List<Thread> threadPartOfCurrentDeadLockExpansion, Set<Thread> threadsAlreadyExpandedInThePastThatWeDoNotWantToExpandAgain, ConcurrencyManager cacheKeyCurrentThreadWantsForWritingButCannotGet) In scenario 3 is when we start considering the possbility our data for detecting the dead lock is not ok or the cache is corrupted.protected DeadLockComponentExplainDeadLockUtil.recursiveExplainPossibleDeadLockStep04ExpandBasedOnThreadStuckOnReleaseDeferredLocks(ConcurrencyManagerState concurrencyManagerStateDto, int recursionMaxDepth, int currentRecursionDepth, Thread currentCandidateThreadPartOfTheDeadLock, List<Thread> threadPartOfCurrentDeadLockExpansion, Set<Thread> threadsAlreadyExpandedInThePastThatWeDoNotWantToExpandAgain) When a thead cannot move forward due to having deferred cache keys, it means that the thread could not go as deep as it wanted during object building and hda to defer making some parts of the object.protected DeadLockComponentExplainDeadLockUtil.recursiveExplainPossibleDeadLockStep05ExpandBasedOnCacheKeyWantedForReading(ConcurrencyManagerState concurrencyManagerStateDto, int recursionMaxDepth, int currentRecursionDepth, Thread currentCandidateThreadPartOfTheDeadLock, List<Thread> threadPartOfCurrentDeadLockExpansion, Set<Thread> threadsAlreadyExpandedInThePastThatWeDoNotWantToExpandAgain, ConcurrencyManager cacheKeyCurrentThreadWantsForReadingButCannotGet) In this case have a thread that wants to acquire for reading a cache key but it does not manage to acquire it because the cache key is being owned by somebody else.protected DeadLockComponentExplainDeadLockUtil.recursiveExplainPossibleDeadLockStep05Scenario01CurrentReaderVsOtherWriters(ConcurrencyManagerState concurrencyManagerStateDto, int recursionMaxDepth, int currentRecursionDepth, Thread currentCandidateThreadPartOfTheDeadLock, List<Thread> threadPartOfCurrentDeadLockExpansion, Set<Thread> threadsAlreadyExpandedInThePastThatWeDoNotWantToExpandAgain, ConcurrencyManager cacheKeyCurrentThreadWantsForWritingButCannotGet) Expand the possibility of the current thread wanting to acquire for writing what some other already has acquired for writing.protected DeadLockComponentExplainDeadLockUtil.recursiveExplainPossibleDeadLockStep05Scenario02CurrentReaderVsCacheKeyActiveThread(ConcurrencyManagerState concurrencyManagerStateDto, int recursionMaxDepth, int currentRecursionDepth, Thread currentCandidateThreadPartOfTheDeadLock, List<Thread> threadPartOfCurrentDeadLockExpansion, Set<Thread> threadsAlreadyExpandedInThePastThatWeDoNotWantToExpandAgain, ConcurrencyManager cacheKeyCurrentThreadWantsForWritingButCannotGet) Same asExplainDeadLockUtil.recursiveExplainPossibleDeadLockStep03Scenario03CurrentWriterVsCacheKeyActiveThread(ConcurrencyManagerState, int, int, Thread, List, Set, ConcurrencyManager)but in this case our candidate thread is trying to get the cache key with the purpose of READING and not for writing.Methods in org.eclipse.persistence.internal.helper that return types with arguments of type DeadLockComponentModifier and TypeMethodDescriptionprotected List<DeadLockComponent> ExplainDeadLockUtil.createListExplainingDeadLock(DeadLockComponent deadLockExplanation) When the last (repeating thread) of a dead lock is discovered and we start the unwinding of the recursion, the first DTO we create is flagged withisFirstRepeatingThreadThatExplainsDeadLock()but it lacks all additional metadata.ExplainDeadLockUtil.explainPossibleDeadLockStartRecursion(ConcurrencyManagerState concurrencyManagerState) Given the concurrency manager state try to explain why we are facing a dead lock.Methods in org.eclipse.persistence.internal.helper with parameters of type DeadLockComponentModifier and TypeMethodDescriptionprotected List<DeadLockComponent> ExplainDeadLockUtil.createListExplainingDeadLock(DeadLockComponent deadLockExplanation) When the last (repeating thread) of a dead lock is discovered and we start the unwinding of the recursion, the first DTO we create is flagged withisFirstRepeatingThreadThatExplainsDeadLock()but it lacks all additional metadata.protected DeadLockComponentExplainDeadLockUtil.deadLockFoundCreateConcurrencyManagerStateDeferredThreadCouldNotAcquireWriteLock(DeadLockComponent nextThreadPartOfDeadLock, Thread threadNotAbleToAccessResource, ConcurrencyManager cacheKeyBlockingIsBuildObjectComplete) Create a deadlock component for a thread known to be stuck trying to release deferred locks.protected DeadLockComponentExplainDeadLockUtil.deadLockFoundCreateConcurrencyManagerStateReaderThreadCouldNotAcquireWriteLock(DeadLockComponent nextThreadPartOfDeadLock, Thread threadNotAbleToAccessResource, ConcurrencyManager cacheKeyThreadWantsToAcquireButCannotGet) Dto component participating in a dead lock.protected DeadLockComponentExplainDeadLockUtil.deadLockFoundCreateConcurrencyManagerStateWriterThreadCouldNotAcquireWriteLock(DeadLockComponent nextThreadPartOfDeadLock, Thread threadNotAbleToAccessResource, ConcurrencyManager cacheKeyThreadWantsToAcquireButCannotGet) Create a dead lock dto component. -
Uses of DeadLockComponent in org.eclipse.persistence.internal.helper.type
Methods in org.eclipse.persistence.internal.helper.type that return DeadLockComponentModifier and TypeMethodDescriptionDeadLockComponent.getNextThreadPartOfDeadLock()Getter fornextThreadPartOfDeadLockMethods in org.eclipse.persistence.internal.helper.type with parameters of type DeadLockComponentModifier and TypeMethodDescriptionvoidDeadLockComponent.setNextThreadPartOfDeadLock(DeadLockComponent nextThreadPartOfDeadLock) Setter fornextThreadPartOfDeadLockConstructors in org.eclipse.persistence.internal.helper.type with parameters of type DeadLockComponentModifierConstructorDescriptionDeadLockComponent(Thread threadNotAbleToAccessResource, boolean stuckOnReleaseDeferredLock, boolean stuckThreadAcquiringLockForWriting, boolean stuckThreadAcquiringLockForReading, ConcurrencyManager cacheKeyThreadWantsToAcquireButCannotGet, boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedActiveThread, boolean deadLockPotentiallyCausedByCacheKeyWithCorruptedNumberOfReaders, DeadLockComponent nextThreadPartOfDeadLock) Create a new DeadLockComponent.