/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "precompiled.hpp"
#include "classfile/symbolTable.hpp"
#include "classfile/systemDictionary.hpp"
#include "memory/filemap.hpp"
#include "oops/oop.inline.hpp"
#include "utilities/hashtable.inline.hpp"
// Closure for serializing initialization data in from a data area
// (oop_array) read from the shared file.
private:
return *(*_oop_array)++;
}
public:
"initializing previously initialized oop.");
"hit tag while initializing oops.");
*p = obj;
}
void do_ptr(void** p) {
"hit tag while initializing ptrs.");
*p = obj;
}
void do_int(int* p) {
}
// Assumes that size_t and pointers are the same size.
}
int old_tag;
}
while (size > 0) {
}
}
bool reading() const { return true; }
};
// Read the oop and miscellaneous data from the shared file, and
// serialize it out to its various destinations.
// Skip over (reserve space for) a list of addresses of C++ vtables
// for Klass objects. They get filled in later.
buffer += vtbl_list_size * sizeof(void*);
// Skip over (reserve space for) dummy C++ vtables Klass objects.
// They are used as is.
buffer += vtable_size;
// Skip the recorded symbols.
// Create the symbol table using the bucket array at this spot in the
// misc data space. Since the symbol table is often modified, this
// region (of mapped pages) will be copy-on-write.
buffer += symbolTableLen;
// Create the string table using the bucket array at this spot in the
// misc data space. Since the string table is often modified, this
// region (of mapped pages) will be copy-on-write.
buffer += stringTableLen;
// Create the shared dictionary using the bucket array at this spot in
// the misc data space. Since the shared dictionary table is never
// modified, this region (of mapped pages) will be (effectively, if
// not explicitly) read-only.
// Create the package info table using the bucket array at this spot in
// the misc data space. Since the package info table is never
// modified, this region (of mapped pages) will be (effectively, if
// not explicitly) read-only.
buffer += pkgInfoLen;
ClassLoader::verify();
// The following data in the shared misc data region are the linked
// list elements (HashtableEntry objects) for the symbol table, string
// table, and shared dictionary. The heap objects refered to by the
// symbol table, string table, and shared dictionary are permanent and
// unmovable. Since new entries added to the string and symbol tables
// are always added at the beginning of the linked lists, THESE LINKED
// LIST ELEMENTS ARE READ-ONLY.
serialize_oops(&rc);
}