From 24633439765c58826ffbfffa5e002787c5bbec50 Mon Sep 17 00:00:00 2001 From: gongdewei Date: Mon, 8 Jun 2020 16:59:35 +0800 Subject: [PATCH] catch throwable --- .../main/java/com/taobao/arthas/core/util/JsonUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/taobao/arthas/core/util/JsonUtils.java b/core/src/main/java/com/taobao/arthas/core/util/JsonUtils.java index 5ab6acb67..a2b184b8b 100644 --- a/core/src/main/java/com/taobao/arthas/core/util/JsonUtils.java +++ b/core/src/main/java/com/taobao/arthas/core/util/JsonUtils.java @@ -27,7 +27,7 @@ public class JsonUtils { } serializeWriterBufferThreshold.setAccessible(true); serializeWriterBufferThreshold.set(null, value); - } catch (Exception e) { + } catch (Throwable e) { logger.error("update SerializeWriter.BUFFER_THRESHOLD value failed", e); } } @@ -59,7 +59,7 @@ public class JsonUtils { if (bytesLocal == null || bytesLocal.length < bufSize) { bytesBufLocal.set(new byte[bufSize]); } - } catch (Exception e) { + } catch (Throwable e) { logger.error("update SerializeWriter.BUFFER_THRESHOLD value failed", e); } } @@ -84,7 +84,7 @@ public class JsonUtils { serializeWriterBytesBufLocal.setAccessible(true); ThreadLocal bytesBufLocal = (ThreadLocal) serializeWriterBytesBufLocal.get(null); bytesBufLocal.set(bytesBuf); - } catch (Exception e) { + } catch (Throwable e) { logger.error("update SerializeWriter.BUFFER_THRESHOLD value failed", e); } }