hotspot/src/os_cpu/solaris_sparc/vm/os_solaris_sparc.cpp
changeset 38133 78b95467b9f1
parent 37431 7f1d6f206102
child 38174 f611c50b8703
equal deleted inserted replaced
38132:ba888a4f352a 38133:78b95467b9f1
   476       else if (sig == SIGBUS && info->si_code == BUS_OBJERR) {
   476       else if (sig == SIGBUS && info->si_code == BUS_OBJERR) {
   477         // BugId 4454115: A read from a MappedByteBuffer can fault
   477         // BugId 4454115: A read from a MappedByteBuffer can fault
   478         // here if the underlying file has been truncated.
   478         // here if the underlying file has been truncated.
   479         // Do not crash the VM in such a case.
   479         // Do not crash the VM in such a case.
   480         CodeBlob* cb = CodeCache::find_blob_unsafe(pc);
   480         CodeBlob* cb = CodeCache::find_blob_unsafe(pc);
   481         nmethod* nm = cb->is_nmethod() ? (nmethod*)cb : NULL;
   481         CompiledMethod* nm = cb->as_compiled_method_or_null();
   482         if (nm != NULL && nm->has_unsafe_access()) {
   482         if (nm != NULL && nm->has_unsafe_access()) {
   483           stub = StubRoutines::handler_for_unsafe_access();
   483           stub = StubRoutines::handler_for_unsafe_access();
   484         }
   484         }
   485       }
   485       }
   486 
   486