Skip to content

Commit

Permalink
Handle memory leaks from Mockito inline mocks (apache#17070)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshat-Jain authored and pranavbhole committed Sep 17, 2024
1 parent d3c071c commit e392d5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ public List<? extends com.fasterxml.jackson.databind.Module> getJacksonModules()
@AfterEach
public void tearDown2()
{
Mockito.framework().clearInlineMocks();
groupByBuffers.close();
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1765,7 +1765,7 @@
@{jacocoArgLine}
${jdk.strong.encapsulation.argLine}
${jdk.security.manager.allow.argLine}
-Xmx2500m
-Xmx2048m
-XX:MaxDirectMemorySize=2500m
-XX:+ExitOnOutOfMemoryError
-XX:+HeapDumpOnOutOfMemoryError
Expand Down

0 comments on commit e392d5c

Please sign in to comment.