src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code/BytecodePosition.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File
*** old/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code/BytecodePosition.java	Thu Mar 28 11:23:31 2019
--- new/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code/BytecodePosition.java	Thu Mar 28 11:23:30 2019

*** 1,7 **** --- 1,7 ---- /* ! * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 2009, 2019, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 85,95 **** --- 85,99 ---- return false; } @Override public int hashCode() { ! return getBCI(); ! int hc = method.hashCode() * 31 + bci; + if (caller != null) { + hc = (hc * 31) + caller.hashCode(); + } + return hc; } /** * @return The location within the method, as a bytecode index. The constant {@code -1} may be * used to indicate the location is unknown, for example within code synthesized by the

src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.code/src/jdk/vm/ci/code/BytecodePosition.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File