提交 0f41e11f 编写于 作者: B bae

8017287: Better resource disposal

Reviewed-by: prr, vadim, skoivu
上级 80cb60f8
...@@ -155,8 +155,7 @@ public class Disposer implements Runnable { ...@@ -155,8 +155,7 @@ public class Disposer implements Runnable {
rec = null; rec = null;
clearDeferredRecords(); clearDeferredRecords();
} catch (Exception e) { } catch (Exception e) {
System.out.println("Exception while removing reference: " + e); System.out.println("Exception while removing reference.");
e.printStackTrace();
} }
} }
} }
...@@ -182,7 +181,6 @@ public class Disposer implements Runnable { ...@@ -182,7 +181,6 @@ public class Disposer implements Runnable {
rec.dispose(); rec.dispose();
} catch (Exception e) { } catch (Exception e) {
System.out.println("Exception while disposing deferred rec."); System.out.println("Exception while disposing deferred rec.");
e.printStackTrace();
} }
} }
deferredRecords.clear(); deferredRecords.clear();
...@@ -233,8 +231,7 @@ public class Disposer implements Runnable { ...@@ -233,8 +231,7 @@ public class Disposer implements Runnable {
} }
} }
} catch (Exception e) { } catch (Exception e) {
System.out.println("Exception while removing reference: " + e); System.out.println("Exception while removing reference.");
e.printStackTrace();
} finally { } finally {
pollingQueue = false; pollingQueue = false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册