equal
deleted
inserted
replaced
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); |