Mercurial > hg > graal-jvmci-8
comparison src/share/vm/jvmci/jvmciCodeInstaller.cpp @ 23390:19855d029fc0
Remove support for patching Symbol pointers (JDK-8156768).
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Wed, 11 May 2016 16:41:28 +0200 |
parents | 83b296a07c33 |
children | 9ed5b586018b |
comparison
equal
deleted
inserted
replaced
23389:f9aa6a496c06 | 23390:19855d029fc0 |
---|---|
177 Method* method = (Method*) (address) HotSpotResolvedJavaMethodImpl::metaspaceMethod(obj); | 177 Method* method = (Method*) (address) HotSpotResolvedJavaMethodImpl::metaspaceMethod(obj); |
178 assert(!HotSpotMetaspaceConstantImpl::compressed(constant), err_msg("unexpected compressed method pointer %s @ " INTPTR_FORMAT, method->name()->as_C_string(), p2i(method))); | 178 assert(!HotSpotMetaspaceConstantImpl::compressed(constant), err_msg("unexpected compressed method pointer %s @ " INTPTR_FORMAT, method->name()->as_C_string(), p2i(method))); |
179 int index = _oop_recorder->find_index(method); | 179 int index = _oop_recorder->find_index(method); |
180 TRACE_jvmci_3("metadata[%d of %d] = %s", index, _oop_recorder->metadata_count(), method->name()->as_C_string()); | 180 TRACE_jvmci_3("metadata[%d of %d] = %s", index, _oop_recorder->metadata_count(), method->name()->as_C_string()); |
181 return method; | 181 return method; |
182 } else if (obj->is_a(HotSpotSymbol::klass())) { | |
183 Symbol* symbol = (Symbol*) (address) HotSpotSymbol::pointer(obj); | |
184 assert(!HotSpotMetaspaceConstantImpl::compressed(constant), err_msg("unexpected compressed symbol pointer %s @ " INTPTR_FORMAT, symbol->as_C_string(), p2i(symbol))); | |
185 TRACE_jvmci_3("symbol = %s", symbol->as_C_string()); | |
186 return symbol; | |
187 } else { | 182 } else { |
188 JVMCI_ERROR_NULL("unexpected metadata reference for constant of type %s", obj->klass()->signature_name()); | 183 JVMCI_ERROR_NULL("unexpected metadata reference for constant of type %s", obj->klass()->signature_name()); |
189 } | 184 } |
190 } | 185 } |
191 | 186 |