< prev index next >
src/share/vm/runtime/sharedRuntime.cpp
Print this page
@@ -3463,11 +3463,12 @@
verif_vk2 == SystemDictionary::___Value_klass(), "Bad value klass");
}
#endif
- if (Universe::heap()->is_in_reserved((void*)res)) {
+// if (Universe::heap()->is_in_reserved((void*)res)) {
+ if (!Metaspace::contains((void*)res)) {
// We're not returning with value type fields in registers (the
// calling convention didn't allow it for this value klass)
thread->set_vm_result((oopDesc*)res);
assert(verif_vk == NULL, "broken calling convention");
return;
< prev index next >