Hello, could you please review a fix for CR 8020983?
Bug: http://bugs.sun.com/view_bug.do?bug_id=8020983 Webrev: http://cr.openjdk.java.net/~bae/8020983/8/webrev.00/ This fix replaces the strong reference in the streamBuffer structure with a weak reference to prevent locking a reader/writer instance. A macro GET_STREAM_REF is introduced to obtain a reference to the 'stream' with checks whether the reference is still alive. If not, the plugin instance is terminated. However, this case seems to be very unlikely because we need an alive plugin instance to run into these methods. Supplied regression test verifies that writer instances can be collected. Please take a look. Thanks, Andrew.