mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
6442502: assert(bits,"Use TypePtr for NULL") on linux-x86
Reviewed-by: kvn
This commit is contained in:
parent
a70da64c72
commit
67f20d82c9
2 changed files with 14 additions and 13 deletions
|
@ -83,6 +83,18 @@ class GraphKit : public Phase {
|
|||
Node* zerocon(BasicType bt) const { return _gvn.zerocon(bt); }
|
||||
// (See also macro MakeConX in type.hpp, which uses intcon or longcon.)
|
||||
|
||||
// Helper for byte_map_base
|
||||
Node* byte_map_base_node() {
|
||||
// Get base of card map
|
||||
CardTableModRefBS* ct = (CardTableModRefBS*)(Universe::heap()->barrier_set());
|
||||
assert(sizeof(*ct->byte_map_base) == sizeof(jbyte), "adjust users of this code");
|
||||
if (ct->byte_map_base != NULL) {
|
||||
return makecon(TypeRawPtr::make((address)ct->byte_map_base));
|
||||
} else {
|
||||
return null();
|
||||
}
|
||||
}
|
||||
|
||||
jint find_int_con(Node* n, jint value_if_unknown) {
|
||||
return _gvn.find_int_con(n, value_if_unknown);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue