From 2c77ae1ca5e483d9ffa2b21608ec3438096b8f86 Mon Sep 17 00:00:00 2001 From: Coleen Phillimore Date: Wed, 30 Oct 2019 22:32:00 -0400 Subject: [PATCH] 8233266: Remove unnecessary fence in restore_unshareable_info Reviewed-by: jiangli, dholmes --- src/hotspot/share/oops/klass.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/hotspot/share/oops/klass.cpp b/src/hotspot/share/oops/klass.cpp index 6669d2365f5..e598b10676b 100644 --- a/src/hotspot/share/oops/klass.cpp +++ b/src/hotspot/share/oops/klass.cpp @@ -564,12 +564,6 @@ void Klass::restore_unshareable_info(ClassLoaderData* loader_data, Handle protec // Restore class_loader_data to the null class loader data set_class_loader_data(loader_data); - // Workaround for suspected bug. Make sure other threads see this assignment. - // This shouldn't be necessary but the compiler thread seems to be behind - // the times, even though this thread takes MethodCompileQueue_lock and the thread - // that doesn't see this value also takes that lock. - OrderAccess::fence(); - // Add to null class loader list first before creating the mirror // (same order as class file parsing) loader_data->add_class(this);