mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
8143931: Back out JDK-8140450
Reviewed-by: coleenp
This commit is contained in:
parent
7fe249f6db
commit
130ba226a1
14 changed files with 58 additions and 1080 deletions
|
@ -115,7 +115,6 @@ LatestMethodCache* Universe::_finalizer_register_cache = NULL;
|
|||
LatestMethodCache* Universe::_loader_addClass_cache = NULL;
|
||||
LatestMethodCache* Universe::_pd_implies_cache = NULL;
|
||||
LatestMethodCache* Universe::_throw_illegal_access_error_cache = NULL;
|
||||
LatestMethodCache* Universe::_do_stack_walk_cache = NULL;
|
||||
oop Universe::_out_of_memory_error_java_heap = NULL;
|
||||
oop Universe::_out_of_memory_error_metaspace = NULL;
|
||||
oop Universe::_out_of_memory_error_class_metaspace = NULL;
|
||||
|
@ -241,7 +240,6 @@ void Universe::serialize(SerializeClosure* f, bool do_all) {
|
|||
_loader_addClass_cache->serialize(f);
|
||||
_pd_implies_cache->serialize(f);
|
||||
_throw_illegal_access_error_cache->serialize(f);
|
||||
_do_stack_walk_cache->serialize(f);
|
||||
}
|
||||
|
||||
void Universe::check_alignment(uintx size, uintx alignment, const char* name) {
|
||||
|
@ -676,7 +674,6 @@ jint universe_init() {
|
|||
Universe::_loader_addClass_cache = new LatestMethodCache();
|
||||
Universe::_pd_implies_cache = new LatestMethodCache();
|
||||
Universe::_throw_illegal_access_error_cache = new LatestMethodCache();
|
||||
Universe::_do_stack_walk_cache = new LatestMethodCache();
|
||||
|
||||
if (UseSharedSpaces) {
|
||||
// Read the data structures supporting the shared spaces (shared
|
||||
|
@ -1051,17 +1048,6 @@ bool universe_post_init() {
|
|||
SystemDictionary::ProtectionDomain_klass(), m);
|
||||
}
|
||||
|
||||
// Setup method for stack walking
|
||||
InstanceKlass::cast(SystemDictionary::AbstractStackWalker_klass())->link_class(CHECK_false);
|
||||
m = InstanceKlass::cast(SystemDictionary::AbstractStackWalker_klass())->
|
||||
find_method(vmSymbols::doStackWalk_name(),
|
||||
vmSymbols::doStackWalk_signature());
|
||||
// Allow NULL which should only happen with bootstrapping.
|
||||
if (m != NULL) {
|
||||
Universe::_do_stack_walk_cache->init(
|
||||
SystemDictionary::AbstractStackWalker_klass(), m);
|
||||
}
|
||||
|
||||
// This needs to be done before the first scavenge/gc, since
|
||||
// it's an input to soft ref clearing policy.
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue