Skip to content

Commit

Permalink
remove and mkdir plot-data before start test
Browse files Browse the repository at this point in the history
  • Loading branch information
sendaoYan committed Sep 12, 2024
1 parent 2f10061 commit 43b0ff2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,12 @@ generatePlotPNG()
fi
}

set -x
commonJvmOptions="-Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:-DeoptimizeRandom \
-XX:CompileCommand=dontinline,compiler.codecache.stress.Helper$TestCase::method -XX:NativeMemoryTracking=summary"

rm -rf java.log
rm -rf java.log plot-data
mkdir -p plot-data
${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} ${TESTJAVAOPTS} -XX:+SegmentedCodeCache ${commonJvmOptions} \
-Dtest.src=${TESTSRC} -cp ${TESTCLASSPATH} compiler.codecache.stress.UnexpectedDeoptimizationTestLoop 40 &> java.log &
pid=$!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use warnings;
use POSIX;
use File::Path qw(make_path);
use File::Path qw(remove_tree);
my $verbose = 0;

die "please input more than 2 jcmd native log files" if( @ARGV < 2 );
Expand Down Expand Up @@ -82,11 +81,10 @@
}
}

if( -d $plotDataDir )
if( ! -d $plotDataDir )
{
remove_tree($plotDataDir);
make_path($plotDataDir);
}
make_path($plotDataDir);

open(my $csvFh, ">native-memory-summary.csv");
open(my $summaryFh, ">native-memory-summary.txt");
Expand Down

0 comments on commit 43b0ff2

Please sign in to comment.