From ab4adef373471403d3b12d41c2596c72ebe7195f Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Thu, 2 Jan 2014 17:47:42 -0700 Subject: [PATCH] remove obsolete idle statement from Unsafe.getLongVolatile Now that Josh has fixed the busy block bug (see commit 10d15d2), we don't need this anymore. --- src/builtin.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/builtin.cpp b/src/builtin.cpp index 1a7d283231..6c069746d2 100644 --- a/src/builtin.cpp +++ b/src/builtin.cpp @@ -765,10 +765,6 @@ Avian_sun_misc_Unsafe_getLongVolatile object o = reinterpret_cast(arguments[1]); int64_t offset; memcpy(&offset, arguments + 2, 8); - // avoid blocking the VM if this is being called in a busy loop - PROTECT(t, o); - { ENTER(t, Thread::IdleState); } - object field; if (BytesPerWord < 8) { field = fieldForOffset(t, o, offset);