2159 // Inflate so the displaced header becomes position-independent
2160 if (lock->displaced_header()->is_unlocked())
2161 ObjectSynchronizer::inflate_helper(kptr2->obj());
2162 // Now the displaced header is free to move
2163 buf[i++] = (intptr_t)lock->displaced_header();
2164 buf[i++] = (intptr_t)kptr2->obj();
2165 }
2166 }
2167 assert( i - max_locals == active_monitor_count*2, "found the expected number of monitors" );
2168
2169 return buf;
2170 JRT_END
2171
2172 JRT_LEAF(void, SharedRuntime::OSR_migration_end( intptr_t* buf) )
2173 FREE_C_HEAP_ARRAY(intptr_t,buf);
2174 JRT_END
2175
2176 #ifndef PRODUCT
2177 bool AdapterHandlerLibrary::contains(CodeBlob* b) {
2178
2179 for (int i = 0 ; i < _handlers->length() ; i++) {
2180 AdapterHandlerEntry* a = get_entry(i);
2181 if ( a != NULL && b == CodeCache::find_blob(a->get_i2c_entry()) ) return true;
2182 }
2183 return false;
2184 }
2185
2186 void AdapterHandlerLibrary::print_handler(CodeBlob* b) {
2187
2188 for (int i = 0 ; i < _handlers->length() ; i++) {
2189 AdapterHandlerEntry* a = get_entry(i);
2190 if ( a != NULL && b == CodeCache::find_blob(a->get_i2c_entry()) ) {
2191 tty->print("Adapter for signature: ");
2192 // Fingerprinter::print(_fingerprints->at(i));
2193 tty->print("0x%" FORMAT64_MODIFIER "x", _fingerprints->at(i));
2194 tty->print_cr(" i2c: " INTPTR_FORMAT " c2i: " INTPTR_FORMAT " c2iUV: " INTPTR_FORMAT,
2195 a->get_i2c_entry(), a->get_c2i_entry(), a->get_c2i_unverified_entry());
2196
2197 return;
2198 }
|
2159 // Inflate so the displaced header becomes position-independent
2160 if (lock->displaced_header()->is_unlocked())
2161 ObjectSynchronizer::inflate_helper(kptr2->obj());
2162 // Now the displaced header is free to move
2163 buf[i++] = (intptr_t)lock->displaced_header();
2164 buf[i++] = (intptr_t)kptr2->obj();
2165 }
2166 }
2167 assert( i - max_locals == active_monitor_count*2, "found the expected number of monitors" );
2168
2169 return buf;
2170 JRT_END
2171
2172 JRT_LEAF(void, SharedRuntime::OSR_migration_end( intptr_t* buf) )
2173 FREE_C_HEAP_ARRAY(intptr_t,buf);
2174 JRT_END
2175
2176 #ifndef PRODUCT
2177 bool AdapterHandlerLibrary::contains(CodeBlob* b) {
2178
2179 if (_handlers == NULL) return false;
2180
2181 for (int i = 0 ; i < _handlers->length() ; i++) {
2182 AdapterHandlerEntry* a = get_entry(i);
2183 if ( a != NULL && b == CodeCache::find_blob(a->get_i2c_entry()) ) return true;
2184 }
2185 return false;
2186 }
2187
2188 void AdapterHandlerLibrary::print_handler(CodeBlob* b) {
2189
2190 for (int i = 0 ; i < _handlers->length() ; i++) {
2191 AdapterHandlerEntry* a = get_entry(i);
2192 if ( a != NULL && b == CodeCache::find_blob(a->get_i2c_entry()) ) {
2193 tty->print("Adapter for signature: ");
2194 // Fingerprinter::print(_fingerprints->at(i));
2195 tty->print("0x%" FORMAT64_MODIFIER "x", _fingerprints->at(i));
2196 tty->print_cr(" i2c: " INTPTR_FORMAT " c2i: " INTPTR_FORMAT " c2iUV: " INTPTR_FORMAT,
2197 a->get_i2c_entry(), a->get_c2i_entry(), a->get_c2i_unverified_entry());
2198
2199 return;
2200 }
|