Skip to content

Commit

Permalink
Try to GC before copying the file
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Oct 17, 2022
1 parent 2094c2b commit 66f3f4f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ void upgrade() throws IOException, InterruptedException {
registry.awaitIdle(d.getId());

/* Do the changes */
System.gc();
Thread.sleep( 100 );
System.gc();

final Path srcDir = parentDir.resolve("../changes").normalize();
try (Stream<Path> files = Files.walk(srcDir)) {
files.forEach(source -> {
Expand Down

0 comments on commit 66f3f4f

Please sign in to comment.