From 5ecc99bbf55e631b5bfa07e2c36b38e820682363 Mon Sep 17 00:00:00 2001 From: Lin Zang Date: Mon, 11 Oct 2021 01:56:34 +0000 Subject: [PATCH] 8274620: resourcehogs/serviceability/sa/TestHeapDumpForLargeArray.java is timing out Reviewed-by: cjplummer, dholmes --- .../classes/sun/jvm/hotspot/utilities/HeapHprofBinWriter.java | 4 ++-- test/hotspot/jtreg/ProblemList.txt | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/utilities/HeapHprofBinWriter.java b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/utilities/HeapHprofBinWriter.java index ce69cc5049c..c8afa4c1b2d 100644 --- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/utilities/HeapHprofBinWriter.java +++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/utilities/HeapHprofBinWriter.java @@ -409,10 +409,10 @@ public class HeapHprofBinWriter extends AbstractHeapGraphWriter { // open file stream and create buffered data output stream fos = new FileOutputStream(fileName); - hprofBufferedOut = fos; + hprofBufferedOut = new BufferedOutputStream(fos); if (useSegmentedHeapDump) { if (isCompression()) { - hprofBufferedOut = new GZIPOutputStream(fos) { + hprofBufferedOut = new GZIPOutputStream(hprofBufferedOut) { { this.def.setLevel(gzLevel); } diff --git a/test/hotspot/jtreg/ProblemList.txt b/test/hotspot/jtreg/ProblemList.txt index 3bf51607a35..988426e23ec 100644 --- a/test/hotspot/jtreg/ProblemList.txt +++ b/test/hotspot/jtreg/ProblemList.txt @@ -120,8 +120,6 @@ serviceability/sa/ClhsdbFindPC.java#xcomp-core 8269982 macosx-aarch64 serviceability/sa/ClhsdbFindPC.java#no-xcomp-core 8269982 macosx-aarch64 serviceability/sa/ClhsdbPstack.java#core 8269982 macosx-aarch64 -resourcehogs/serviceability/sa/TestHeapDumpForLargeArray.java 8274620 macosx-x64 - ############################################################################# # :hotspot_misc