Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/method.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 | 600c44255e5f |
children | bf41eee321e5 |
comparison
equal
deleted
inserted
replaced
22885:367427923e39 | 22886:fdde6a70ea85 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 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. |
1417 // Reset method ordering | 1417 // Reset method ordering |
1418 if (set_idnums) { | 1418 if (set_idnums) { |
1419 for (int i = 0; i < length; i++) { | 1419 for (int i = 0; i < length; i++) { |
1420 Method* m = methods->at(i); | 1420 Method* m = methods->at(i); |
1421 m->set_method_idnum(i); | 1421 m->set_method_idnum(i); |
1422 m->set_orig_method_idnum(i); | |
1422 } | 1423 } |
1423 } | 1424 } |
1424 } | 1425 } |
1425 } | 1426 } |
1426 | 1427 |