dynamobi/dynamobi — Issue #377: [FNL-89] leak in FennelStorage.tupleStreamGraphOpen
Author: dynamobi-build
Created: 2011-12-30 03:11:27+00:00
State: open
Labels: FNL, JniImpl

[reporter="jvs", created="Thu, 13 May 2010 02:02:53 -0500 (GMT-05:00)"]
When a stream graph is reused by a new runtime context, we do this:

streamGraphHandle.javaRuntimeContext =

pEnv->NewGlobalRef(hJavaStreamMap);

But we never DeleteGlobalRef on the old runtime context, causing it to leak (along with all of the Java objects it references).

Actually, we should also be doing this even earlier (when the stream graph is closed) so that when a stream graph hangs around in the code cache, it doesn't keep the last runtime context tied up with it.