@@ -114,8 +114,6 @@ class CompileReplay : public StackObj {
114114 private:
115115 FILE* _stream;
116116 Thread* _thread;
117- Handle _protection_domain;
118- bool _protection_domain_initialized;
119117 Handle _loader;
120118 int _version;
121119
@@ -144,8 +142,6 @@ class CompileReplay : public StackObj {
144142 CompileReplay (const char * filename, TRAPS) {
145143 _thread = THREAD;
146144 _loader = Handle (_thread, SystemDictionary::java_system_loader ());
147- _protection_domain = Handle ();
148- _protection_domain_initialized = false ;
149145
150146 _stream = os::fopen (filename, " rt" );
151147 if (_stream == nullptr ) {
@@ -558,7 +554,7 @@ class CompileReplay : public StackObj {
558554 if (_iklass != nullptr ) {
559555 k = (Klass*)_iklass->find_klass (ciSymbol::make (klass_name->as_C_string ()))->constant_encoding ();
560556 } else {
561- k = SystemDictionary::resolve_or_fail (klass_name, _loader, _protection_domain, true , THREAD);
557+ k = SystemDictionary::resolve_or_fail (klass_name, _loader, true , THREAD);
562558 }
563559 if (HAS_PENDING_EXCEPTION) {
564560 oop throwable = PENDING_EXCEPTION;
@@ -579,7 +575,7 @@ class CompileReplay : public StackObj {
579575 // Lookup a klass
580576 Klass* resolve_klass (const char * klass, TRAPS) {
581577 Symbol* klass_name = SymbolTable::new_symbol (klass);
582- return SystemDictionary::resolve_or_fail (klass_name, _loader, _protection_domain, true , THREAD);
578+ return SystemDictionary::resolve_or_fail (klass_name, _loader, true , THREAD);
583579 }
584580
585581 // Parse the standard tuple of <klass> <name> <signature>
@@ -896,18 +892,6 @@ class CompileReplay : public StackObj {
896892 // just load the referenced class
897893 Klass* k = parse_klass (CHECK);
898894
899- if (_version >= 1 ) {
900- if (!_protection_domain_initialized && k != nullptr ) {
901- assert (_protection_domain () == nullptr , " must be uninitialized" );
902- // The first entry is the holder class of the method for which a replay compilation is requested.
903- // Use the same protection domain to load all subsequent classes in order to resolve all classes
904- // in signatures of inlinees. This ensures that inlining can be done as stated in the replay file.
905- _protection_domain = Handle (_thread, k->protection_domain ());
906- }
907-
908- _protection_domain_initialized = true ;
909- }
910-
911895 if (k == nullptr ) {
912896 return ;
913897 }
0 commit comments