Mercurial > hg > graal-compiler
comparison src/share/vm/services/virtualMemoryTracker.cpp @ 20364:c6211b707068
8055007: NMT2: emptyStack missing in minimal build
Summary: Refactored emptyStack to a static member of NativeCallStack, which is accessible in minimal build.
Reviewed-by: coleenp, dholmes
author | zgu |
---|---|
date | Tue, 19 Aug 2014 08:34:25 -0400 |
parents | 36c9011aaead |
children | 3adc0e278f49 |
comparison
equal
deleted
inserted
replaced
20363:36c9011aaead | 20364:c6211b707068 |
---|---|
165 rgn.exclude_region(addr, exclude_size); | 165 rgn.exclude_region(addr, exclude_size); |
166 if (add_committed_region(rgn)) { | 166 if (add_committed_region(rgn)) { |
167 // higher part | 167 // higher part |
168 address high_base = addr + sz; | 168 address high_base = addr + sz; |
169 size_t high_size = top - high_base; | 169 size_t high_size = top - high_base; |
170 CommittedMemoryRegion high_rgn(high_base, high_size, emptyStack); | 170 CommittedMemoryRegion high_rgn(high_base, high_size, NativeCallStack::EMPTY_STACK); |
171 return add_committed_region(high_rgn); | 171 return add_committed_region(high_rgn); |
172 } else { | 172 } else { |
173 return false; | 173 return false; |
174 } | 174 } |
175 } | 175 } |