mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Bug 921178 - Remove unused fallback marking bitmap; r=billm
--HG-- extra : rebase_source : 4b53c8eb16d332ad8916a0abf4dd6ccd5f211ed4
This commit is contained in:
parent
8febb002f2
commit
9a5ce0ec01
@ -34,8 +34,6 @@ js::Nursery::init()
|
||||
if (!hugeSlots.init())
|
||||
return false;
|
||||
|
||||
fallbackBitmap.clear(false);
|
||||
|
||||
void *heap = MapAlignedPages(runtime(), NurserySize, Alignment);
|
||||
#ifdef JSGC_ROOT_ANALYSIS
|
||||
// Our poison pointers are not guaranteed to be invalid on 64-bit
|
||||
@ -97,8 +95,6 @@ js::Nursery::disable()
|
||||
void *
|
||||
js::Nursery::allocate(size_t size)
|
||||
{
|
||||
JS_ASSERT(size % ThingAlignment == 0);
|
||||
JS_ASSERT(position() % ThingAlignment == 0);
|
||||
JS_ASSERT(!runtime()->isHeapBusy());
|
||||
|
||||
if (position() + size > currentEnd()) {
|
||||
|
@ -137,11 +137,6 @@ class Nursery
|
||||
typedef HashSet<HeapSlot *, PointerHasher<HeapSlot *, 3>, SystemAllocPolicy> HugeSlotsSet;
|
||||
HugeSlotsSet hugeSlots;
|
||||
|
||||
/* The marking bitmap for the fallback marker. */
|
||||
static const size_t ThingAlignment = sizeof(JS::Value);
|
||||
static const size_t FallbackBitmapBits = NurserySize / ThingAlignment;
|
||||
BitArray<FallbackBitmapBits> fallbackBitmap;
|
||||
|
||||
#ifdef DEBUG
|
||||
/*
|
||||
* In DEBUG builds, these bytes indicate the state of an unused segment of
|
||||
|
Loading…
x
Reference in New Issue
Block a user