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

@ -349,7 +349,7 @@ public:
~JvmtiRawMonitor();
int magic() { return _magic; }
const char *get_name() { return _name; }
bool is_valid() { return _magic == JVMTI_RM_MAGIC; }
bool is_valid();
};
// Onload pending raw monitors