Mercurial > hg > graal-compiler
comparison src/share/vm/oops/markOop.hpp @ 48:d8b3ef7ee3e5
6599425: 4/3 OopMapCache::lookup() can cause later crash or assert() failure
Summary: Add should_not_be_cached() to markOop and methodOop and query that status inOopMapCache::lookup()
Reviewed-by: coleenp, sspitsyn, jmasa
author | dcubed |
---|---|
date | Wed, 12 Mar 2008 18:07:46 -0700 |
parents | a61af66fc99e |
children | ba764ed4b6f2 |
comparison
equal
deleted
inserted
replaced
47:2c106685d6d0 | 48:d8b3ef7ee3e5 |
---|---|
355 // Prepare address of oop for placement into mark | 355 // Prepare address of oop for placement into mark |
356 inline static markOop encode_pointer_as_mark(void* p) { return markOop(p)->set_marked(); } | 356 inline static markOop encode_pointer_as_mark(void* p) { return markOop(p)->set_marked(); } |
357 | 357 |
358 // Recover address of oop from encoded form used in mark | 358 // Recover address of oop from encoded form used in mark |
359 inline void* decode_pointer() { if (UseBiasedLocking && has_bias_pattern()) return NULL; return clear_lock_bits(); } | 359 inline void* decode_pointer() { if (UseBiasedLocking && has_bias_pattern()) return NULL; return clear_lock_bits(); } |
360 | |
361 // see the definition in markOop.cpp for the gory details | |
362 bool should_not_be_cached() const; | |
360 }; | 363 }; |