src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.lir.test/src/org/graalvm/compiler/hotspot/lir/test/ExceedMaxOopMapStackOffset.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 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. |
118 safepoint(); |
118 safepoint(); |
119 instrinsic(readStackObjects); |
119 instrinsic(readStackObjects); |
120 } |
120 } |
121 |
121 |
122 @Test |
122 @Test |
123 public void runStackObjects() throws Throwable { |
123 public void runStackObjects() { |
124 int max = ((HotSpotBackend) getBackend()).getRuntime().getVMConfig().maxOopMapStackOffset; |
124 int max = ((HotSpotBackend) getBackend()).getRuntime().getVMConfig().maxOopMapStackOffset; |
125 if (max == Integer.MAX_VALUE) { |
125 if (max == Integer.MAX_VALUE) { |
126 max = 16 * 1024 - 64; |
126 max = 16 * 1024 - 64; |
127 } |
127 } |
128 try { |
128 try { |