#1590 Resolves issue with RSP tuners generating too many native buffers causing excessive memory consumption (#1591)

Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
Denny Sheirer
2023-07-02 06:23:00 -04:00
committed by GitHub
parent bac38a5bd8
commit f3369410b2
2 changed files with 2 additions and 2 deletions

2
.idea/misc.xml generated
View File

@@ -4,7 +4,7 @@
<component name="FrameworkDetectionExcludesConfiguration">
<file type="web" url="file://$PROJECT_DIR$" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_19_PREVIEW" project-jdk-name="19" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_19" default="true" project-jdk-name="19" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

View File

@@ -122,7 +122,7 @@ public class RspNativeBufferFactory
{
int optimal = 128;
while((optimal * 2) < length)
while((optimal) < length)
{
optimal *= 2;
}