diff hotspot/src/share/vm/opto/graphKit.hpp @ 2027:a980915cf495

6442502: assert(bits,"Use TypePtr for NULL") on linux-x86 Reviewed-by: kvn
author never
date Wed, 04 Feb 2009 23:17:38 -0800
parents 4c24294029a9
children 347008ce7984
line wrap: on
line diff
--- a/hotspot/src/share/vm/opto/graphKit.hpp	Wed Feb 04 11:44:57 2009 -0800
+++ b/hotspot/src/share/vm/opto/graphKit.hpp	Wed Feb 04 23:17:38 2009 -0800
@@ -83,6 +83,18 @@
   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);
   }