Mercurial > hg > truffle
diff src/share/vm/memory/universe.hpp @ 858:5314d85ffd54
6826736: CMS: core dump with -XX:+UseCompressedOops
Summary: Fix deoptimization code and OopMapSet::all_do() to check for oop = narrow_oop_base.
Reviewed-by: jcoomes, phh, ysr, never
author | kvn |
---|---|
date | Wed, 22 Jul 2009 15:48:51 -0700 |
parents | bd441136a5ce |
children | 433f394ab509 |
line wrap: on
line diff
--- a/src/share/vm/memory/universe.hpp Tue Jul 21 21:33:44 2009 -0700 +++ b/src/share/vm/memory/universe.hpp Wed Jul 22 15:48:51 2009 -0700 @@ -343,6 +343,7 @@ // For UseCompressedOops static address* narrow_oop_base_addr() { return &_narrow_oop._base; } static address narrow_oop_base() { return _narrow_oop._base; } + static bool is_narrow_oop_base(void* addr) { return (narrow_oop_base() == (address)addr); } static int narrow_oop_shift() { return _narrow_oop._shift; } static void set_narrow_oop_base(address base) { _narrow_oop._base = base; } static void set_narrow_oop_shift(int shift) { _narrow_oop._shift = shift; }