6567360: 3/4 SIGBUS in jvmti RawMonitor magic check for unaligned bad monitor pointer

Change JvmtiEnvBase::is_valid() and JvmtiRawMonitor::is_valid() to fetch the _magic fields via Bytes::get_native_u[248]().

Reviewed-by: coleenp, swamyv
This commit is contained in:
Daniel D. Daugherty 2009-03-02 14:05:07 -07:00
parent da3f81559f
commit 8aebf28301
4 changed files with 60 additions and 2 deletions

View file

@ -120,7 +120,7 @@ class JvmtiEnvBase : public CHeapObj {
public:
bool is_valid() { return _magic == JVMTI_MAGIC; }
bool is_valid();
bool is_retransformable() { return _is_retransformable; }