From 2515c42b2c7e7b87501379a5a9cbd1e19d0a182d Mon Sep 17 00:00:00 2001 From: Leonid Mesnik Date: Fri, 26 Feb 2021 16:35:28 +0000 Subject: [PATCH] 8262332: serviceability/sa/ClhsdbJhisto.java fails with Test ERROR java.lang.RuntimeException: 'ParselTongue' missing from stdout/stderr Reviewed-by: cjplummer --- .../jtreg/serviceability/sa/LingeredAppWithInterface.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/hotspot/jtreg/serviceability/sa/LingeredAppWithInterface.java b/test/hotspot/jtreg/serviceability/sa/LingeredAppWithInterface.java index 4b65bf1f637..e62a17beb28 100644 --- a/test/hotspot/jtreg/serviceability/sa/LingeredAppWithInterface.java +++ b/test/hotspot/jtreg/serviceability/sa/LingeredAppWithInterface.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -23,6 +23,8 @@ import jdk.test.lib.apps.LingeredApp; +import java.lang.ref.Reference; + interface Language { static final long nbrOfWords = 99999; public abstract long getNbrOfWords(); @@ -54,5 +56,6 @@ public long getNbrOfWords() { System.out.println(lang.getNbrOfWords() + muggleSpeak.getNbrOfWords()); LingeredApp.main(args); + Reference.reachabilityFence(lang); } }