62 set_base((address)heap_space.compressed_oop_base());
63 }
64
65 AOTLoader::set_narrow_oop_shift();
66
67 _heap_address_range = heap_space.region();
68
69 LogTarget(Info, gc, heap, coops) lt;
70 if (lt.is_enabled()) {
71 ResourceMark rm;
72 LogStream ls(lt);
73 print_mode(&ls);
74 }
75
76 // Tell tests in which mode we run.
77 Arguments::PropertyList_add(new SystemProperty("java.vm.compressedOopsMode",
78 mode_to_string(mode()),
79 false));
80
81 // base() is one page below the heap.
82 assert((intptr_t)base() <= (intptr_t)(_heap_address_range.start() - os::vm_page_size()) ||
83 base() == NULL, "invalid value");
84 assert(shift() == LogMinObjAlignmentInBytes ||
85 shift() == 0, "invalid value");
86 #endif
87 }
88
89 void CompressedOops::set_base(address base) {
90 assert(UseCompressedOops, "no compressed oops?");
91 _narrow_oop._base = base;
92 }
93
94 void CompressedOops::set_shift(int shift) {
95 _narrow_oop._shift = shift;
96 }
97
98 void CompressedOops::set_use_implicit_null_checks(bool use) {
99 assert(UseCompressedOops, "no compressed ptrs?");
100 _narrow_oop._use_implicit_null_checks = use;
101 }
102
|
62 set_base((address)heap_space.compressed_oop_base());
63 }
64
65 AOTLoader::set_narrow_oop_shift();
66
67 _heap_address_range = heap_space.region();
68
69 LogTarget(Info, gc, heap, coops) lt;
70 if (lt.is_enabled()) {
71 ResourceMark rm;
72 LogStream ls(lt);
73 print_mode(&ls);
74 }
75
76 // Tell tests in which mode we run.
77 Arguments::PropertyList_add(new SystemProperty("java.vm.compressedOopsMode",
78 mode_to_string(mode()),
79 false));
80
81 // base() is one page below the heap.
82 assert((intptr_t)base() <= ((intptr_t)_heap_address_range.start() - os::vm_page_size()) ||
83 base() == NULL, "invalid value");
84 assert(shift() == LogMinObjAlignmentInBytes ||
85 shift() == 0, "invalid value");
86 #endif
87 }
88
89 void CompressedOops::set_base(address base) {
90 assert(UseCompressedOops, "no compressed oops?");
91 _narrow_oop._base = base;
92 }
93
94 void CompressedOops::set_shift(int shift) {
95 _narrow_oop._shift = shift;
96 }
97
98 void CompressedOops::set_use_implicit_null_checks(bool use) {
99 assert(UseCompressedOops, "no compressed ptrs?");
100 _narrow_oop._use_implicit_null_checks = use;
101 }
102
|