< prev index next > test/hotspot/jtreg/runtime/execstack/TestCheckJDK.java
Print this page
*/
import jdk.test.lib.Asserts;
import jdk.test.whitebox.WhiteBox;
+ import java.io.File;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
public class TestCheckJDK {
private static final WhiteBox WB = WhiteBox.getWhiteBox();
static void checkExecStack(Path file) {
String filename = file.toString();
Path parent = file.getParent();
- if ((parent.endsWith("bin") && !filename.endsWith(".diz")) || filename.endsWith(".so")) {
+ if ((parent.endsWith("bin") && !filename.endsWith(".diz") && !filename.endsWith(File.separator + "jfrconv"))
+ || filename.endsWith(".so")) {
if (!WB.checkLibSpecifiesNoexecstack(filename)) {
System.out.println("Library does not have the noexecstack bit set: " + filename);
testPassed = false;
}
}
< prev index next >