Bug 507036 - Move valgrind icache-flush notification to CodeAlloc, r=dvander.

--HG--
extra : rebase_source : 7815a2cd0699aff603e96bb05eae04c27d504578
This commit is contained in:
Edwin Smith 2009-07-23 11:55:57 -04:00
parent e299aec675
commit 59e1ebda37
2 changed files with 1 additions and 2 deletions

View File

@ -256,7 +256,6 @@ namespace nanojit
// CodeAlloc contract: allocations never fail
_codeAlloc->alloc(start, end);
VALGRIND_DISCARD_TRANSLATIONS(start, uintptr_t(end) - uintptr_t(start));
NanoAssert(uintptr_t(end) - uintptr_t(start) >= (size_t)LARGEST_UNDERRUN_PROT);
eip = end;
}

View File

@ -2208,7 +2208,7 @@ namespace nanojit
#if defined(NJ_VERBOSE)
LabelMap::LabelMap(AvmCore *core, nanojit::Allocator& a)
: allocator(a), names(core->gc), addrs(core->config.verbose_addrs), end(buf), core(core)
: allocator(a), names(core->gc), addrs(core->config.verbose_addrs), end(buf)
{}
LabelMap::~LabelMap()