src/share/vm/oops/cpCacheOop.cpp

changeset 2742
ed69575596ac
parent 2658
c7f3d0b4570f
child 2811
08ccee2c4dbf
equal deleted inserted replaced
2741:55973726c600 2742:ed69575596ac
183 (intptr_t)method(), vtable_index); 183 (intptr_t)method(), vtable_index);
184 method->print(); 184 method->print();
185 this->print(tty, 0); 185 this->print(tty, 0);
186 } 186 }
187 assert(method->can_be_statically_bound(), "must be a MH invoker method"); 187 assert(method->can_be_statically_bound(), "must be a MH invoker method");
188 assert(AllowTransitionalJSR292 || _f2 >= constantPoolOopDesc::CPCACHE_INDEX_TAG, "BSM index initialized"); 188 assert(_f2 >= constantPoolOopDesc::CPCACHE_INDEX_TAG, "BSM index initialized");
189 // SystemDictionary::find_method_handle_invoke only caches 189 // SystemDictionary::find_method_handle_invoke only caches
190 // methods which signature classes are on the boot classpath, 190 // methods which signature classes are on the boot classpath,
191 // otherwise the newly created method is returned. To avoid 191 // otherwise the newly created method is returned. To avoid
192 // races in that case we store the first one coming in into the 192 // races in that case we store the first one coming in into the
193 // cp-cache atomically if it's still unset. 193 // cp-cache atomically if it's still unset.

mercurial