Rename Immix bitmap structures to bytemaps

These structures have been bytemaps for quite a while now, so let's
start calling them that.
parent 9af64983
Pipeline #40780133 passed with stages
in 13 minutes and 7 seconds
......@@ -11,9 +11,9 @@ use std::sync::atomic::{AtomicBool, Ordering};
use std::thread;
use deref_pointer::DerefPointer;
use immix::bitmap::{Bitmap, LineMap, ObjectMap};
use immix::block_list::BlockIteratorMut;
use immix::bucket::Bucket;
use immix::bytemap::{Bytemap, LineMap, ObjectMap};
use object::Object;
use object_pointer::RawObjectPointer;
......@@ -636,8 +636,8 @@ impl Drop for Block {
#[cfg(test)]
mod tests {
use super::*;
use immix::bitmap::Bitmap;
use immix::bucket::Bucket;
use immix::bytemap::Bytemap;
use object::Object;
use object_value::ObjectValue;
use std::mem;
......
......@@ -354,8 +354,8 @@ impl Drop for Bucket {
mod tests {
use super::*;
use config::Config;
use immix::bitmap::Bitmap;
use immix::block::Block;
use immix::bytemap::Bytemap;
use immix::global_allocator::{GlobalAllocator, RcGlobalAllocator};
use immix::histograms::Histograms;
use object::Object;
......
//! Object And Line Bitmaps
//! Object And Line Bytemaps
//!
//! Bitmaps are used for marking live objects as well as marking which lines are
//! in use. An ObjectMap is used for marking objects and can hold at most 1024
//! entries while a LineMap is used for marking lines and can hold at most 256
//! entries.
//! Bytemaps are used for marking live objects as well as marking which lines
//! are in use. An ObjectMap is used for marking objects and can hold at most
//! 1024 entries while a LineMap is used for marking lines and can hold at most
//! 256 entries.
/// The number of entries in an object map.
const OBJECT_ENTRIES: usize = 1024;
......@@ -20,7 +20,7 @@ pub struct LineMap {
mark_value: u8,
}
pub trait Bitmap {
pub trait Bytemap {
fn max_entries(&self) -> usize;
fn values(&self) -> &[u8];
fn values_mut(&mut self) -> &mut [u8];
......@@ -137,7 +137,7 @@ impl LineMap {
}
}
impl Bitmap for ObjectMap {
impl Bytemap for ObjectMap {
#[inline(always)]
fn values(&self) -> &[u8] {
&self.values
......@@ -153,7 +153,7 @@ impl Bitmap for ObjectMap {
}
}
impl Bitmap for LineMap {
impl Bytemap for LineMap {
#[inline(always)]
fn values(&self) -> &[u8] {
&self.values
......
pub mod bitmap;
pub mod block;
pub mod block_list;
pub mod bucket;
pub mod bytemap;
pub mod copy_object;
pub mod generation_config;
pub mod global_allocator;
......
......@@ -22,9 +22,9 @@ use binding::RcBinding;
use block::Block;
use ffi::{Pointer, RcFunction, RcLibrary};
use hasher::Hasher;
use immix::bitmap::Bitmap;
use immix::block;
use immix::bucket::{MAILBOX, MATURE, PERMANENT};
use immix::bytemap::Bytemap;
use immix::local_allocator::YOUNG_MAX_AGE;
use immutable_string::ImmutableString;
use object::{Object, ObjectStatus, FORWARDED_BIT};
......@@ -672,9 +672,9 @@ mod tests {
use std::i128;
use config::Config;
use immix::bitmap::Bitmap;
use immix::block::Block;
use immix::bucket::{Bucket, MAILBOX, MATURE, PERMANENT};
use immix::bytemap::Bytemap;
use immix::global_allocator::GlobalAllocator;
use immix::local_allocator::LocalAllocator;
use object::{Object, ObjectStatus};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment