Mercurial > hg > graal-compiler
comparison src/share/vm/utilities/globalDefinitions.hpp @ 14392:b5c8a61d7fa0
Merge
author | kvn |
---|---|
date | Fri, 21 Jun 2013 15:56:24 -0700 |
parents | f2110083203d |
children | 836a62f43af9 90d6c221d4e5 |
comparison
equal
deleted
inserted
replaced
14391:d2907f74462e | 14392:b5c8a61d7fa0 |
---|---|
378 #endif | 378 #endif |
379 #ifdef TARGET_ARCH_ppc | 379 #ifdef TARGET_ARCH_ppc |
380 # include "globalDefinitions_ppc.hpp" | 380 # include "globalDefinitions_ppc.hpp" |
381 #endif | 381 #endif |
382 | 382 |
383 /* | |
384 * If a platform does not support NMT_detail | |
385 * the platform specific globalDefinitions (above) | |
386 * can set PLATFORM_NMT_DETAIL_SUPPORTED to false | |
387 */ | |
388 #ifndef PLATFORM_NMT_DETAIL_SUPPORTED | |
389 #define PLATFORM_NMT_DETAIL_SUPPORTED true | |
390 #endif | |
383 | 391 |
384 // The byte alignment to be used by Arena::Amalloc. See bugid 4169348. | 392 // The byte alignment to be used by Arena::Amalloc. See bugid 4169348. |
385 // Note: this value must be a power of 2 | 393 // Note: this value must be a power of 2 |
386 | 394 |
387 #define ARENA_AMALLOC_ALIGNMENT (2*BytesPerWord) | 395 #define ARENA_AMALLOC_ALIGNMENT (2*BytesPerWord) |
751 | 759 |
752 | 760 |
753 // Helper function to convert BasicType info into TosState | 761 // Helper function to convert BasicType info into TosState |
754 // Note: Cannot define here as it uses global constant at the time being. | 762 // Note: Cannot define here as it uses global constant at the time being. |
755 TosState as_TosState(BasicType type); | 763 TosState as_TosState(BasicType type); |
756 | |
757 | |
758 // ReferenceType is used to distinguish between java/lang/ref/Reference subclasses | |
759 | |
760 enum ReferenceType { | |
761 REF_NONE, // Regular class | |
762 REF_OTHER, // Subclass of java/lang/ref/Reference, but not subclass of one of the classes below | |
763 REF_SOFT, // Subclass of java/lang/ref/SoftReference | |
764 REF_WEAK, // Subclass of java/lang/ref/WeakReference | |
765 REF_FINAL, // Subclass of java/lang/ref/FinalReference | |
766 REF_PHANTOM // Subclass of java/lang/ref/PhantomReference | |
767 }; | |
768 | 764 |
769 | 765 |
770 // JavaThreadState keeps track of which part of the code a thread is executing in. This | 766 // JavaThreadState keeps track of which part of the code a thread is executing in. This |
771 // information is needed by the safepoint code. | 767 // information is needed by the safepoint code. |
772 // | 768 // |