mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-09 22:48:41 +00:00
8381770: Revert some shared changes done by JDK-8381003
Reviewed-by: kvn
This commit is contained in:
parent
34686923aa
commit
1e2aa616c9
@ -1332,7 +1332,6 @@ nmethod::nmethod(
|
||||
code_buffer->copy_values_to(this);
|
||||
|
||||
post_init();
|
||||
ICache::invalidate_range(code_begin(), code_size());
|
||||
}
|
||||
|
||||
if (PrintNativeNMethods || PrintDebugInfo || PrintRelocations || PrintDependencies) {
|
||||
@ -1812,7 +1811,6 @@ nmethod::nmethod(
|
||||
init_immutable_data_ref_count();
|
||||
|
||||
post_init();
|
||||
ICache::invalidate_range(code_begin(), code_size());
|
||||
|
||||
// we use the information of entry points to find out if a method is
|
||||
// static or non static
|
||||
|
||||
@ -590,6 +590,15 @@ oop oop_Relocation::oop_value() {
|
||||
return *oop_addr();
|
||||
}
|
||||
|
||||
void oop_Relocation::fix_oop_relocation() {
|
||||
// TODO: we need to add some assert here that ICache::invalidate_range is called in the code
|
||||
// which uses this function.
|
||||
if (!oop_is_immediate()) {
|
||||
// get the oop from the pool, and re-insert it into the instruction:
|
||||
set_value(value());
|
||||
}
|
||||
}
|
||||
|
||||
void oop_Relocation::verify_oop_relocation() {
|
||||
if (!oop_is_immediate()) {
|
||||
// get the oop from the pool, and re-insert it into the instruction:
|
||||
|
||||
@ -988,6 +988,8 @@ class oop_Relocation : public DataRelocation {
|
||||
void pack_data_to(CodeSection* dest) override;
|
||||
void unpack_data() override;
|
||||
|
||||
void fix_oop_relocation(); // reasserts oop value
|
||||
|
||||
void verify_oop_relocation();
|
||||
|
||||
address value() override { return *reinterpret_cast<address*>(oop_addr()); }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user