equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 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. |
114 // Version for unloaded classes: |
114 // Version for unloaded classes: |
115 ciInstanceKlass::ciInstanceKlass(ciSymbol* name, |
115 ciInstanceKlass::ciInstanceKlass(ciSymbol* name, |
116 jobject loader, jobject protection_domain) |
116 jobject loader, jobject protection_domain) |
117 : ciKlass(name, T_OBJECT) |
117 : ciKlass(name, T_OBJECT) |
118 { |
118 { |
119 assert(name->char_at(0) != '[', "not an instance klass"); |
119 assert(name->char_at(0) != JVM_SIGNATURE_ARRAY, "not an instance klass"); |
120 _init_state = (InstanceKlass::ClassState)0; |
120 _init_state = (InstanceKlass::ClassState)0; |
121 _nonstatic_field_size = -1; |
121 _nonstatic_field_size = -1; |
122 _has_nonstatic_fields = false; |
122 _has_nonstatic_fields = false; |
123 _nonstatic_fields = NULL; |
123 _nonstatic_fields = NULL; |
124 _has_injected_fields = -1; |
124 _has_injected_fields = -1; |