Mercurial > hg > truffle
diff src/share/vm/prims/whitebox.cpp @ 8003:3c9bc17b9403
Merge
author | bpittore |
---|---|
date | Thu, 07 Feb 2013 16:05:48 -0500 |
parents | 4102b59539ce db9981fd3124 |
children | 12e01444ca2d |
line wrap: on
line diff
--- a/src/share/vm/prims/whitebox.cpp Wed Feb 06 15:22:32 2013 -0800 +++ b/src/share/vm/prims/whitebox.cpp Thu Feb 07 16:05:48 2013 -0500 @@ -36,12 +36,13 @@ #include "runtime/interfaceSupport.hpp" #include "runtime/os.hpp" #include "utilities/debug.hpp" +#include "utilities/macros.hpp" -#ifndef SERIALGC +#if INCLUDE_ALL_GCS #include "gc_implementation/g1/concurrentMark.hpp" #include "gc_implementation/g1/g1CollectedHeap.inline.hpp" #include "gc_implementation/g1/heapRegionRemSet.hpp" -#endif // !SERIALGC +#endif // INCLUDE_ALL_GCS #ifdef INCLUDE_NMT #include "services/memTracker.hpp" @@ -89,7 +90,7 @@ return closure.found(); WB_END -#ifndef SERIALGC +#if INCLUDE_ALL_GCS WB_ENTRY(jboolean, WB_G1IsHumongous(JNIEnv* env, jobject o, jobject obj)) G1CollectedHeap* g1 = G1CollectedHeap::heap(); oop result = JNIHandles::resolve(obj); @@ -112,7 +113,7 @@ WB_ENTRY(jint, WB_G1RegionSize(JNIEnv* env, jobject o)) return (jint)HeapRegion::GrainBytes; WB_END -#endif // !SERIALGC +#endif // INCLUDE_ALL_GCS #ifdef INCLUDE_NMT // Keep track of the 3 allocations in NMTAllocTest so we can free them later @@ -229,12 +230,12 @@ CC "(Ljava/lang/String;[Lsun/hotspot/parser/DiagnosticCommand;)[Ljava/lang/Object;", (void*) &WB_ParseCommandLine }, -#ifndef SERIALGC +#if INCLUDE_ALL_GCS {CC"g1InConcurrentMark", CC"()Z", (void*)&WB_G1InConcurrentMark}, {CC"g1IsHumongous", CC"(Ljava/lang/Object;)Z", (void*)&WB_G1IsHumongous }, {CC"g1NumFreeRegions", CC"()J", (void*)&WB_G1NumFreeRegions }, {CC"g1RegionSize", CC"()I", (void*)&WB_G1RegionSize }, -#endif // !SERIALGC +#endif // INCLUDE_ALL_GCS #ifdef INCLUDE_NMT {CC"NMTAllocTest", CC"()Z", (void*)&WB_NMTAllocTest }, {CC"NMTFreeTestMemory", CC"()Z", (void*)&WB_NMTFreeTestMemory },