Mercurial > hg > truffle
comparison src/share/vm/oops/metadata.hpp @ 14655:7380034e5b31
8035735: Metaspace::contains become extremely slow in some cases
Summary: Call is_metadata instead which does less work for the call in debugInfo.hpp which is called for all compiled code stack frames.
Reviewed-by: jmasa, dcubed
author | coleenp |
---|---|
date | Mon, 03 Mar 2014 13:58:52 -0500 |
parents | cd6b3f1a94ff |
children | 92aa6797d639 52b4284cb496 |
comparison
equal
deleted
inserted
replaced
14654:2edca307b15a | 14655:7380034e5b31 |
---|---|
40 int identity_hash() { return (int)(uintptr_t)this; } | 40 int identity_hash() { return (int)(uintptr_t)this; } |
41 | 41 |
42 // Rehashing support for tables containing pointers to this | 42 // Rehashing support for tables containing pointers to this |
43 unsigned int new_hash(juint seed) { ShouldNotReachHere(); return 0; } | 43 unsigned int new_hash(juint seed) { ShouldNotReachHere(); return 0; } |
44 | 44 |
45 virtual bool is_metadata() const volatile { return true; } | |
45 virtual bool is_klass() const volatile { return false; } | 46 virtual bool is_klass() const volatile { return false; } |
46 virtual bool is_method() const volatile { return false; } | 47 virtual bool is_method() const volatile { return false; } |
47 virtual bool is_methodData() const volatile { return false; } | 48 virtual bool is_methodData() const volatile { return false; } |
48 virtual bool is_constantPool() const volatile { return false; } | 49 virtual bool is_constantPool() const volatile { return false; } |
49 | 50 |