6599425: 4/3 OopMapCache::lookup() can cause later crash or assert() failure

Add should_not_be_cached() to markOop and methodOop and query that status inOopMapCache::lookup()

Reviewed-by: coleenp, sspitsyn, jmasa
This commit is contained in:
Daniel D. Daugherty 2008-03-12 18:07:46 -07:00
parent 0f1d30354a
commit f813016add
7 changed files with 71 additions and 14 deletions

View file

@ -357,4 +357,7 @@ class markOopDesc: public oopDesc {
// Recover address of oop from encoded form used in mark
inline void* decode_pointer() { if (UseBiasedLocking && has_bias_pattern()) return NULL; return clear_lock_bits(); }
// see the definition in markOop.cpp for the gory details
bool should_not_be_cached() const;
};