src/share/vm/classfile/systemDictionary.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File

## src/share/vm/classfile/systemDictionary.hpp

Print this page

    *** 226,235 ****
    --- 226,237 ----
          Opt_Only_JDK15,             // preload tried; use only with JDK1.5+
          OPTION_LIMIT,
          CEIL_LG_OPTION_LIMIT = 4    // OPTION_LIMIT <= (1<<CEIL_LG_OPTION_LIMIT)
        };

    +   // The system dictionary
    +   static TwoOopHashtable<Klass*, mtClass>* the_table() { return (TwoOopHashtable<Klass*, mtClass>*)dictionary(); }

        // Returns a class with a given class name and class loader.  Loads the
        // class if needed. If not found a NoClassDefFoundError or a
        // ClassNotFoundException is thrown, depending on the value on the
        // throw_error flag.  For most uses the throw_error argument should be set
    *** 556,567 ****

        enum Constants {
          _loader_constraint_size = 107,                     // number of entries in constraint table
          _resolution_error_size  = 107,                     // number of entries in resolution error table
          _invoke_method_size     = 139,                     // number of entries in invoke method table
    !     _nof_buckets            = 1009,                    // number of buckets in hash table for placeholders
    !     _old_default_sdsize     = 1009,                    // backward compat for system dictionary size
          _prime_array_size       = 8,                       // array of primes for system dictionary size
          _average_depth_goal     = 3                        // goal for lookup length
        };

    --- 558,569 ----

        enum Constants {
          _loader_constraint_size = 107,                        // number of entries in constraint table
          _resolution_error_size  = 107,                        // number of entries in resolution error table
          _invoke_method_size     = 139,                        // number of entries in invoke method table
    !     _nof_buckets            = defaultSystemDictionarySize,// number of buckets in hash table for placeholders
    !     _old_default_sdsize     = defaultSystemDictionarySize,// backward compat for system dictionary size
          _prime_array_size       = 8,                          // array of primes for system dictionary size
          _average_depth_goal     = 3                           // goal for lookup length
        };

    *** 653,667 ****
        static void add_to_hierarchy(instanceKlassHandle k, TRAPS);

        // event based tracing
        static void post_class_load_event(const Ticks& start_time, instanceKlassHandle k,
                                          Handle initiating_loader);
    -   // We pass in the hashtable index so we can calculate it outside of
    -   // the SystemDictionary_lock.

        // Basic find on loaded classes
    !   static Klass* find_class(int index, unsigned int hash,
                                   Symbol* name, ClassLoaderData* loader_data);
        static Klass* find_class(Symbol* class_name, ClassLoaderData* loader_data);

        // Basic find on classes in the midst of being loaded
        static Symbol* find_placeholder(Symbol* name, ClassLoaderData* loader_data);
    --- 655,667 ----
        static void add_to_hierarchy(instanceKlassHandle k, TRAPS);

        // event based tracing
        static void post_class_load_event(const Ticks& start_time, instanceKlassHandle k,
                                          Handle initiating_loader);

        // Basic find on loaded classes
    !   static Klass* find_class(unsigned int hash,
                                   Symbol* name, ClassLoaderData* loader_data);
        static Klass* find_class(Symbol* class_name, ClassLoaderData* loader_data);

        // Basic find on classes in the midst of being loaded
        static Symbol* find_placeholder(Symbol* name, ClassLoaderData* loader_data);
    *** 688,702 ****

        // Initialization
        static void initialize_preloaded_classes(TRAPS);

        // Class loader constraints
    !   static void check_constraints(int index, unsigned int hash,
                                      instanceKlassHandle k, Handle loader,
                                      bool defining, TRAPS);
    !   static void update_dictionary(int d_index, unsigned int d_hash,
    !                                 int p_index, unsigned int p_hash,
                                      instanceKlassHandle k, Handle loader,
                                      TRAPS);

        // Variables holding commonly used klasses (preloaded)
        static Klass* _well_known_klasses[];
    --- 688,702 ----

        // Initialization
        static void initialize_preloaded_classes(TRAPS);

        // Class loader constraints
    !   static void check_constraints(unsigned int hash,
                                      instanceKlassHandle k, Handle loader,
                                      bool defining, TRAPS);
    !   static void update_dictionary(unsigned int d_hash,
    !                                 unsigned int p_hash,
                                      instanceKlassHandle k, Handle loader,
                                      TRAPS);

        // Variables holding commonly used klasses (preloaded)
        static Klass* _well_known_klasses[];

src/share/vm/classfile/systemDictionary.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File