hotspot/src/share/vm/ci/ciInstanceKlass.cpp
changeset 46329 53ccc37bda19
parent 41669 2091069b6851
child 46458 3c12af929e7d
equal deleted inserted replaced
46328:6061df52d610 46329:53ccc37bda19
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2017, 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.
    42 
    42 
    43 // ------------------------------------------------------------------
    43 // ------------------------------------------------------------------
    44 // ciInstanceKlass::ciInstanceKlass
    44 // ciInstanceKlass::ciInstanceKlass
    45 //
    45 //
    46 // Loaded instance klass.
    46 // Loaded instance klass.
    47 ciInstanceKlass::ciInstanceKlass(KlassHandle h_k) :
    47 ciInstanceKlass::ciInstanceKlass(Klass* k) :
    48   ciKlass(h_k)
    48   ciKlass(k)
    49 {
    49 {
    50   assert(get_Klass()->is_instance_klass(), "wrong type");
    50   assert(get_Klass()->is_instance_klass(), "wrong type");
    51   assert(get_instanceKlass()->is_loaded(), "must be at least loaded");
    51   assert(get_instanceKlass()->is_loaded(), "must be at least loaded");
    52   InstanceKlass* ik = get_instanceKlass();
    52   InstanceKlass* ik = get_instanceKlass();
    53 
    53 
    81   // Lazy fields get filled in only upon request.
    81   // Lazy fields get filled in only upon request.
    82   _super  = NULL;
    82   _super  = NULL;
    83   _java_mirror = NULL;
    83   _java_mirror = NULL;
    84 
    84 
    85   if (is_shared()) {
    85   if (is_shared()) {
    86     if (h_k() != SystemDictionary::Object_klass()) {
    86     if (k != SystemDictionary::Object_klass()) {
    87       super();
    87       super();
    88     }
    88     }
    89     //compute_nonstatic_fields();  // done outside of constructor
    89     //compute_nonstatic_fields();  // done outside of constructor
    90   }
    90   }
    91 
    91