RFR: 8152515: (logging) LogManager.resetLogger should ignore LinkageError
Roger Riggs
Roger.Riggs at Oracle.com
Fri Oct 28 13:50:14 UTC 2016
Hi Daniel,
Looks fine.
Roger
On 10/28/2016 7:51 AM, Daniel Fuchs wrote:
> Hi,
>
> Please find below a trivial patch for:
>
> 8152515: (logging) LogManager.resetLogger should ignore LinkageError
> https://bugs.openjdk.java.net/browse/JDK-8152515
>
>
> Patch:
> http://cr.openjdk.java.net/~dfuchs/webrev_8152515/webrev.00/
>
> The issue might occur at shutdown, when a handler that makes uses
> of some APIs provided by an OSGI bundle which was already closed
> by the shutdown process is in turn closed by the LogManager.Cleaner
> thread. In that case some subclasses of LinkageError may be thrown,
> interrupting the reset process and preventing other handlers from
> being closed properly.
>
> The patch proposes to trivially ignore LinkageError at shutdown while
> the LogManager.Cleaner thread is running.
>
> best regards,
>
> -- daniel
More information about the core-libs-dev
mailing list