Skip to content

Instantly share code, notes, and snippets.

@butaji
Created October 30, 2011 18:55
Show Gist options
  • Save butaji/1326275 to your computer and use it in GitHub Desktop.
Save butaji/1326275 to your computer and use it in GitHub Desktop.
AtomicLong.lazySet
bool GraphBuilder::append_unsafe_put_obj(ciMethod* callee, BasicType t, bool is_volatile) {
if (InlineUnsafeOps) {
Values* args = state()->pop_arguments(callee->arg_size());
null_check(args->at(0));
Instruction* offset = args->at(2);
#ifndef _LP64
offset = append(new Convert(Bytecodes::_l2i, offset, as_ValueType(T_INT)));
#endif
Instruction* op = append(new UnsafePutObject(t, args->at(1), offset, args->at(3), is_volatile));
compilation()->set_has_unsafe_access(true);
kill_all();
}
return InlineUnsafeOps;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment