-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Java: extend JniWrapperCache checks to identify double dispose problem
This change extends debug checks in JniWrapperCache class to show the problem related to double dispose. When we remove an entry from JniWrapperCache in 'get_cached_wrapper_impl()' because the reference was invalidated we must anticipate, that the cleanup will be scheduled for this non-existent object. It may cause problems, because the cleanup of weak reference entry for the old object may remove the entry for the new entry. This commit extends checking and again makes 'stressTestJniWeakReferenceCache()' test to fail. In next commit the fix will be implemented to prevent such double-dispose. Signed-off-by: Patryk Wrobel <[email protected]>
- Loading branch information
1 parent
c6fd38d
commit dd4599a
Showing
4 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters