mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 921178 - Remove unused fallback marking bitmap; r=billm
--HG-- extra : rebase_source : 4b53c8eb16d332ad8916a0abf4dd6ccd5f211ed4
This commit is contained in:
parent
e85e1b2a99
commit
a127f041dd
@ -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…
Reference in New Issue
Block a user