]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/write_barrier.hpp
webapps.wiki: adding search bar
[factor.git] / vm / write_barrier.hpp
index d2382c755c5f813559e8552707d0e5c69bed4a75..2dda02297cc1a758acdc5b0d2c1ab3b0901dcf8a 100644 (file)
@@ -1,14 +1,14 @@
-/* card marking write barrier. a card is a byte storing a mark flag,
-and the offset (in cells) of the first object in the card.
+// card marking write barrier. a card is a byte storing a mark flag,
+// and the offset (in cells) of the first object in the card.
 
-the mark flag is set by the write barrier when an object in the
-card has a slot written to.
+// the mark flag is set by the write barrier when an object in the
+// card has a slot written to.
 
-the offset of the first object is set by the allocator. */
+// the offset of the first object is set by the allocator.
 
 namespace factor {
 
-/* if card_points_to_nursery is set, card_points_to_aging must also be set. */
+// if card_points_to_nursery is set, card_points_to_aging must also be set.
 static const cell card_points_to_nursery = 0x80;
 static const cell card_points_to_aging = 0x40;
 static const cell card_mark_mask =
@@ -22,8 +22,8 @@ static const cell addr_card_mask = card_size - 1;
 typedef uint8_t card_deck;
 
 static const cell deck_bits = card_bits + 10;
-/* Number of bytes on the heap a deck addresses. Each deck as 1024
-   cards. So 256 kb. */
+// Number of bytes on the heap a deck addresses. Each deck as 1024
+// cards. So 256 kb.
 static const cell deck_size = 1 << deck_bits;
 static const cell cards_per_deck = 1 << 10;