Summary: | Memory leak in GLDrawableHelper: 'perThreadInitAction' shall use a WeakReference | ||
---|---|---|---|
Product: | [JogAmp] Jogl | Reporter: | Bart Adams <bart.adams> |
Component: | opengl | Assignee: | Sven Gothel <sgothel> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | askinner |
Priority: | --- | ||
Version: | 2 | ||
Hardware: | All | ||
OS: | all | ||
Type: | --- | SCM Refs: |
876a168f6757454e8a02543b53e32b89e54282bd
|
Workaround: | --- |
Description
Bart Adams
2014-07-08 12:44:37 CEST
Commit 876a168f6757454e8a02543b53e32b89e54282bd: Static ThreadLocal 'perThreadInitAction' leaks memory if using a hard reference, utilizing a WeakReference allows the passed 'initAction' owner to be garbage collected. Note-1: It has to be noted, that the static ThreadLocal storage within GLDrawableHelper originally did not get released in case of AWT, since the GLDrawableHelper instance is a member of GLCanvas/GLJPanel and used from within the AWT-EDT, which does not die. |