Mercurial > hg > graal-compiler
diff src/share/vm/services/mallocSiteTable.hpp @ 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 | 833b0f92429a |
children |
line wrap: on
line diff
--- a/src/share/vm/services/mallocSiteTable.hpp Thu Aug 14 09:02:51 2014 -0400 +++ b/src/share/vm/services/mallocSiteTable.hpp Tue Aug 19 08:34:25 2014 -0400 @@ -32,13 +32,14 @@ #include "services/allocationSite.hpp" #include "services/mallocTracker.hpp" #include "services/nmtCommon.hpp" +#include "utilities/nativeCallStack.hpp" // MallocSite represents a code path that eventually calls // os::malloc() to allocate memory class MallocSite : public AllocationSite<MemoryCounter> { public: MallocSite() : - AllocationSite<MemoryCounter>(emptyStack) { } + AllocationSite<MemoryCounter>(NativeCallStack::EMPTY_STACK) { } MallocSite(const NativeCallStack& stack) : AllocationSite<MemoryCounter>(stack) { }