< prev index next >

src/hotspot/cpu/x86/compressedKlass_x86.cpp

Print this page

29 
30 #include "oops/compressedKlass.hpp"
31 #include "utilities/globalDefinitions.hpp"
32 
33 char* CompressedKlassPointers::reserve_address_space_for_compressed_classes(size_t size, bool aslr, bool optimize_for_zero_base) {
34 
35   char* result = nullptr;
36 
37   // Optimize for unscaled encoding; failing that, for zero-based encoding:
38   if (optimize_for_zero_base) {
39     result = reserve_address_space_for_unscaled_encoding(size, aslr);
40     if (result == nullptr) {
41       result = reserve_address_space_for_zerobased_encoding(size, aslr);
42     }
43   } // end: low-address reservation
44 
45   // Nothing more to optimize for on x64. If base != 0, we will always emit the full 64-bit immediate.
46   return result;
47 }
48 


49 #endif // _LP64

29 
30 #include "oops/compressedKlass.hpp"
31 #include "utilities/globalDefinitions.hpp"
32 
33 char* CompressedKlassPointers::reserve_address_space_for_compressed_classes(size_t size, bool aslr, bool optimize_for_zero_base) {
34 
35   char* result = nullptr;
36 
37   // Optimize for unscaled encoding; failing that, for zero-based encoding:
38   if (optimize_for_zero_base) {
39     result = reserve_address_space_for_unscaled_encoding(size, aslr);
40     if (result == nullptr) {
41       result = reserve_address_space_for_zerobased_encoding(size, aslr);
42     }
43   } // end: low-address reservation
44 
45   // Nothing more to optimize for on x64. If base != 0, we will always emit the full 64-bit immediate.
46   return result;
47 }
48 
49 bool CompressedKlassPointers::pd_initialize(address addr, size_t len) { return false; }
50 
51 #endif // _LP64
< prev index next >