mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
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:
parent
da3f81559f
commit
8aebf28301
4 changed files with 60 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue