8055007: NMT2: emptyStack missing in minimal build

Refactored emptyStack to a static member of NativeCallStack, which is accessible in minimal build.

Reviewed-by: coleenp, dholmes
This commit is contained in:
Zhengyu Gu 2014-08-19 08:34:25 -04:00
parent 1fec07f4bf
commit e672087234
8 changed files with 17 additions and 14 deletions

View file

@ -167,7 +167,7 @@ bool ReservedMemoryRegion::remove_uncommitted_region(address addr, size_t sz) {
// higher part
address high_base = addr + sz;
size_t high_size = top - high_base;
CommittedMemoryRegion high_rgn(high_base, high_size, emptyStack);
CommittedMemoryRegion high_rgn(high_base, high_size, NativeCallStack::EMPTY_STACK);
return add_committed_region(high_rgn);
} else {
return false;