Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quellcode-Bibliothek dumpTimeClassInfo.inline.hpp

  Sprache: C
 


/*
 * Copyright (c) 2021, 2022, Oracle and/or its affiliates. All java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
 *DO NOT  OR  java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 13
 define 
 code  is  software;you}else java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
 * cassfile/lassLoaderData..""
 * java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 4
 *
 * This code is distributed in the hope java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 32
 * ANY WARRANTY; // k->is_loader_alive() will not change.
. See  GNUGeneral  
 * java.lang.StringIndexOutOfBoundsException: Range [49, 10) out of bounds for length 74
 * accompanied this code).
 *
 function(,info)
 * 2along with this work;if not, write    Software Foundation,
 * Inc., 51 FranklinSystemDictionaryShared:set_excluded_locked(k)
 *
 * Please ::terate_all_live_classes( iter)const {
 *or visit www.oracle.com if you need additional  or have any
 * questions.
 *
 */


#ifndef SHARED_CDS_DUMPTIMESHAREDCLASSINFO_INLINE_HPP
#define SHARED_CDS_DUMPTIMESHAREDCLASSINFO_INLINE_HPP

#include "cds/dumpTimeClassInfo.hpp"

#include "classfile/systemDictionaryShared.hpp"
#include "classfile/classLoaderData.inline.hpp"
#include "oops/instanceKlass.hpp"
#include "oops/klass.inline.hpp"
#include "runtime/safepoint.hpp"

#if INCLUDE_CDS

// For safety, only iterate over a class if its loader is alive.
// This function must be called only inside a safepoint, where the value of
// k->is_loader_alive() will not change.
template<typename Function>
void DumpTimeSharedClassTable::iterate_all_live_classes(Function function) const {
  auto wrapper = [&] (InstanceKlass* k, DumpTimeClassInfo& info) {
    assert(SafepointSynchronize::is_at_safepoint(), "invariant");
    assert_lock_strong(DumpTimeTable_lock);
    if (k->is_loader_alive()) {
      function(k, info);
      assert(k->is_loader_alive(), "must not change");
    } else {
      if (!SystemDictionaryShared::is_excluded_class(k)) {
        SystemDictionaryShared::warn_excluded(k, "Class loader not alive");
        SystemDictionaryShared::set_excluded_locked(k);
      }
    }
  };
  DumpTimeSharedClassTableBaseType::iterate_all(wrapper);
}


template<class ITER>
void DumpTimeSharedClassTable::iterate_all_live_classes(ITER* iter) const {
  auto function = [&] (InstanceKlass* k, DumpTimeClassInfo& v) {
    iter->do_entry(k, v);
  };
  iterate_all_live_classes(function);
}

#endif // INCLUDE_CDS

#endif // SHARED_CDS_DUMPTIMESHAREDCLASSINFO_INLINE_HPP

Messung V0.5 in Prozent
C=88 H=90 G=88

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.8Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

letze Version des Elbe Quellennavigators


Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1019547
#Domains=890699