Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8252182: [JEP 390] Diagnose synchronization on @ValueBased classes #274

Closed
wants to merge 8 commits into from
@@ -327,7 +327,7 @@ bool ObjectSynchronizer::quick_enter(oop obj, Thread* self,
NoSafepointVerifier nsv;
if (obj == NULL) return false; // Need to throw NPE

if (DiagnoseSyncOnValueBasedClasses != 0 && obj->klass()->is_value_based()) {
if (obj->klass()->is_value_based()) {
return false;
}

@@ -439,7 +439,7 @@ void ObjectSynchronizer::handle_sync_on_value_based_class(Handle obj, Thread* cu
// changed. The implementation is extremely sensitive to race condition. Be careful.

void ObjectSynchronizer::enter(Handle obj, BasicLock* lock, TRAPS) {
if (DiagnoseSyncOnValueBasedClasses != 0 && obj->klass()->is_value_based()) {
if (obj->klass()->is_value_based()) {
handle_sync_on_value_based_class(obj, THREAD);
}