equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 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. |
70 // Sort alphabetically, note 'Z' < '[' < 'a', but it's better to group |
70 // Sort alphabetically, note 'Z' < '[' < 'a', but it's better to group |
71 // the array classes before all the instance classes. |
71 // the array classes before all the instance classes. |
72 ResourceMark rm; |
72 ResourceMark rm; |
73 const char* name1 = e1->klass()->external_name(); |
73 const char* name1 = e1->klass()->external_name(); |
74 const char* name2 = e2->klass()->external_name(); |
74 const char* name2 = e2->klass()->external_name(); |
75 bool d1 = (name1[0] == '['); |
75 bool d1 = (name1[0] == JVM_SIGNATURE_ARRAY); |
76 bool d2 = (name2[0] == '['); |
76 bool d2 = (name2[0] == JVM_SIGNATURE_ARRAY); |
77 if (d1 && !d2) { |
77 if (d1 && !d2) { |
78 return -1; |
78 return -1; |
79 } else if (d2 && !d1) { |
79 } else if (d2 && !d1) { |
80 return 1; |
80 return 1; |
81 } else { |
81 } else { |