src/share/vm/utilities/globalDefinitions.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
warning2 Cdiff src/share/vm/utilities/globalDefinitions.hpp
src/share/vm/utilities/globalDefinitions.hpp
Print this page
rev 3821 : [mq]: unused
*** 411,420 ****
--- 411,427 ----
inline intptr_t align_object_offset(intptr_t offset) {
return align_size_up(offset, HeapWordsPerLong);
}
+ // Clamp an address to be within a specific page
+ // 1. If addr is on the page it is returned as is
+ // 2. If addr is above the page_address the start of the *next* page will be returned
+ // 3. Otherwise, if addr is below the page_address the start of the page will be returned
+ address clamp_address_in_page(address addr, address page_address);
+
+
// The expected size in bytes of a cache line, used to pad data structures.
#define DEFAULT_CACHE_LINE_SIZE 64
// Bytes needed to pad type to avoid cache-line sharing; alignment should be the
// expected cache line size (a power of two). The first addend avoids sharing
*** 1272,1277 ****
--- 1279,1295 ----
#endif /* COMPILER2 */
# endif /* ASSERT */
#define ARRAY_SIZE(array) (sizeof(array)/sizeof((array)[0]))
+
+ #ifndef PRODUCT
+
+ // For unit testing only
+ class GlobalDefinitions {
+ public:
+ static void test_globals();
+ };
+
+ #endif // PRODUCT
+
#endif // SHARE_VM_UTILITIES_GLOBALDEFINITIONS_HPP
src/share/vm/utilities/globalDefinitions.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File