8074552: SafeFetch32 and SafeFetchN do not work in error handling

Reviewed-by: dholmes, goetz
This commit is contained in:
Thomas Stufe 2015-03-12 19:34:50 -04:00 committed by David Holmes
parent cc658928be
commit 33690bd090
21 changed files with 255 additions and 32 deletions

View file

@ -458,4 +458,9 @@ inline intptr_t SafeFetchN(intptr_t* adr, intptr_t errValue) {
return StubRoutines::SafeFetchN_stub()(adr, errValue);
}
// returns true if SafeFetch32 and SafeFetchN can be used safely (stubroutines are already generated)
inline bool CanUseSafeFetch32() { return StubRoutines::SafeFetch32_stub() ? true : false; }
inline bool CanUseSafeFetchN() { return StubRoutines::SafeFetchN_stub() ? true : false; }
#endif // SHARE_VM_RUNTIME_STUBROUTINES_HPP