Mercurial > hg > graal-jvmci-8
comparison src/share/vm/utilities/debug.hpp @ 12029:9766f73e770d
8022880: False sharing between PSPromotionManager instances
Summary: Pad the PSPromotionManager instances in the manager array.
Reviewed-by: brutisso, jmasa
author | stefank |
---|---|
date | Fri, 31 May 2013 14:32:44 +0200 |
parents | 59b052799158 |
children | 3cce976666d9 e2722a66aba7 |
comparison
equal
deleted
inserted
replaced
12009:39127bb12d32 | 12029:9766f73e770d |
---|---|
223 void report_unimplemented(const char* file, int line); | 223 void report_unimplemented(const char* file, int line); |
224 void report_untested(const char* file, int line, const char* message); | 224 void report_untested(const char* file, int line, const char* message); |
225 | 225 |
226 void warning(const char* format, ...); | 226 void warning(const char* format, ...); |
227 | 227 |
228 #ifdef ASSERT | |
229 // Compile-time asserts. | |
230 template <bool> struct StaticAssert; | |
231 template <> struct StaticAssert<true> {}; | |
232 | |
233 // Only StaticAssert<true> is defined, so if cond evaluates to false we get | |
234 // a compile time exception when trying to use StaticAssert<false>. | |
235 #define STATIC_ASSERT(cond) \ | |
236 do { \ | |
237 StaticAssert<(cond)> DUMMY_STATIC_ASSERT; \ | |
238 (void)DUMMY_STATIC_ASSERT; /* ignore */ \ | |
239 } while (false) | |
240 #else | |
241 #define STATIC_ASSERT(cond) | |
242 #endif | |
243 | |
228 // out of shared space reporting | 244 // out of shared space reporting |
229 enum SharedSpaceType { | 245 enum SharedSpaceType { |
230 SharedPermGen, | 246 SharedPermGen, |
231 SharedReadOnly, | 247 SharedReadOnly, |
232 SharedReadWrite, | 248 SharedReadWrite, |