// NOTE: This is a little weird. NULL is not treated any special: ObjectBitSet will happily // allocate a fragement for the memory range starting at 0 and mark the first bit when passing NULL. // In the absense of any error handling, I am not sure what would possibly be a reasonable better // way to do it, though.
TEST_VM(ObjectBitSet, null) {
ObjectBitSet<mtTracing> obs;
ASSERT_FALSE(obs.is_marked((oop)NULL));
obs.mark_obj((oop) NULL);
ASSERT_TRUE(obs.is_marked((oop)NULL));
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.