--- a/src/hotspot/cpu/x86/gc/shared/barrierSetAssembler_x86.cpp Thu Apr 26 09:04:18 2018 +0100
+++ b/src/hotspot/cpu/x86/gc/shared/barrierSetAssembler_x86.cpp Thu Apr 26 11:56:24 2018 +0200
@@ -25,6 +25,7 @@
#include "precompiled.hpp"
#include "gc/shared/barrierSetAssembler.hpp"
#include "interpreter/interp_masm.hpp"
+#include "runtime/jniHandles.hpp"
#define __ masm->
@@ -108,3 +109,8 @@
default: Unimplemented();
}
}
+
+void BarrierSetAssembler::try_resolve_jobject_in_native(MacroAssembler* masm, Register robj, Register tmp, Label& slowpath) {
+ __ clear_jweak_tag(robj);
+ __ movptr(robj, Address(robj, 0));
+}