Mercurial > hg > truffle
comparison src/share/vm/prims/jvmtiEnvBase.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 | dcb15a6f342d |
comparison
equal
deleted
inserted
replaced
610:70998f2e05ef | 611:2f716c0acb64 |
---|---|
118 void set_next_environment(JvmtiEnvBase* env) { _next = env; } | 118 void set_next_environment(JvmtiEnvBase* env) { _next = env; } |
119 static JvmtiEnv* head_environment() { return (JvmtiEnv*)_head_environment; } | 119 static JvmtiEnv* head_environment() { return (JvmtiEnv*)_head_environment; } |
120 | 120 |
121 public: | 121 public: |
122 | 122 |
123 bool is_valid() { return _magic == JVMTI_MAGIC; } | 123 bool is_valid(); |
124 | 124 |
125 bool is_retransformable() { return _is_retransformable; } | 125 bool is_retransformable() { return _is_retransformable; } |
126 | 126 |
127 static ByteSize jvmti_external_offset() { | 127 static ByteSize jvmti_external_offset() { |
128 return byte_offset_of(JvmtiEnvBase, _jvmti_external); | 128 return byte_offset_of(JvmtiEnvBase, _jvmti_external); |