Mercurial > hg > truffle
comparison src/share/vm/prims/jvmtiImpl.hpp @ 611:2f716c0acb64
6567360: 3/4 SIGBUS in jvmti RawMonitor magic check for unaligned bad monitor pointer
Summary: Change JvmtiEnvBase::is_valid() and JvmtiRawMonitor::is_valid() to fetch the _magic fields via Bytes::get_native_u[248]().
Reviewed-by: coleenp, swamyv
author | dcubed |
---|---|
date | Mon, 02 Mar 2009 14:05:07 -0700 |
parents | a61af66fc99e |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
610:70998f2e05ef | 611:2f716c0acb64 |
---|---|
347 public: | 347 public: |
348 JvmtiRawMonitor(const char *name); | 348 JvmtiRawMonitor(const char *name); |
349 ~JvmtiRawMonitor(); | 349 ~JvmtiRawMonitor(); |
350 int magic() { return _magic; } | 350 int magic() { return _magic; } |
351 const char *get_name() { return _name; } | 351 const char *get_name() { return _name; } |
352 bool is_valid() { return _magic == JVMTI_RM_MAGIC; } | 352 bool is_valid(); |
353 }; | 353 }; |
354 | 354 |
355 // Onload pending raw monitors | 355 // Onload pending raw monitors |
356 // Class is used to cache onload or onstart monitor enter | 356 // Class is used to cache onload or onstart monitor enter |
357 // which will transition into real monitor when | 357 // which will transition into real monitor when |