Mercurial > hg > graal-jvmci-8
comparison src/share/vm/classfile/defaultMethods.cpp @ 22886:fdde6a70ea85
8046246: the constantPoolCacheOopDesc::adjust_method_entries() used in RedefineClasses does not scale
Summary: optimize the adjust_method_entries functions by using the orig_method_idnum() function
Reviewed-by: coleenp, dcubed
author | sspitsyn |
---|---|
date | Tue, 17 Mar 2015 17:11:14 -0700 |
parents | 78bbf4d43a14 |
children | 8cd2e2834c8f |
comparison
equal
deleted
inserted
replaced
22885:367427923e39 | 22886:fdde6a70ea85 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2012, 2015, 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. |
1089 } | 1089 } |
1090 ++new_idx; | 1090 ++new_idx; |
1091 } | 1091 } |
1092 // update idnum for new location | 1092 // update idnum for new location |
1093 merged_methods->at(i)->set_method_idnum(i); | 1093 merged_methods->at(i)->set_method_idnum(i); |
1094 merged_methods->at(i)->set_orig_method_idnum(i); | |
1094 } | 1095 } |
1095 | 1096 |
1096 // Verify correct order | 1097 // Verify correct order |
1097 #ifdef ASSERT | 1098 #ifdef ASSERT |
1098 uintptr_t prev = 0; | 1099 uintptr_t prev = 0; |