test/hotspot/jtreg/compiler/jvmci/compilerToVM/DisassembleCodeBlobTest.java
changeset 54669 ad45b3802d4e
parent 50793 ca4eea543d23
equal deleted inserted replaced
54668:0bda2308eded 54669:ad45b3802d4e
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    67         test.checkNull();
    67         test.checkNull();
    68     }
    68     }
    69 
    69 
    70     private void checkNull() {
    70     private void checkNull() {
    71         Utils.runAndCheckException(
    71         Utils.runAndCheckException(
    72                 () -> CompilerToVMHelper.disassembleCodeBlob(null),
    72                 () -> { CompilerToVMHelper.disassembleCodeBlob(null); },
    73                 NullPointerException.class);
    73                 NullPointerException.class);
    74     }
    74     }
    75 
    75 
    76     private void checkZero(CompileCodeTestCase testCase) {
    76     private void checkZero(CompileCodeTestCase testCase) {
    77         System.out.println("checkZero for " + testCase);
    77         System.out.println("checkZero for " + testCase);