He-Pin commented on code in PR #1623: URL: https://github.com/apache/pekko/pull/1623#discussion_r1894921805
########## stream/src/main/scala/org/apache/pekko/stream/impl/fusing/StreamOfStreams.scala: ########## @@ -237,7 +239,9 @@ import pekko.util.ccompat.JavaConverters._ override def onUpstreamFinish(): Unit = { if (!prefixComplete) { // This handles the unpulled out case as well - emit(out, (builder.result(), Source.empty), () => completeStage()) + val prefix = builder.result(); + builder = null // free for GC + emit(out, (prefix, Source.empty), () => completeStage()) Review Comment: @queimadus Yes, different problem, the new problem is the interpreter keeps many things in memory -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For additional commands, e-mail: notifications-h...@pekko.apache.org