Skip to content

Commit

Permalink
8320602: Lock contention in SchemaDVFactory.getInstance()
Browse files Browse the repository at this point in the history
Reviewed-by: iris, lancea
  • Loading branch information
JoeWang-Java committed Nov 28, 2023
1 parent f1a24f6 commit 0678253
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public abstract class SchemaDVFactory {
* @exception DVFactoryException cannot create an instance of the specified
* class name or the default class name
*/
public static synchronized final SchemaDVFactory getInstance() throws DVFactoryException {
public static final SchemaDVFactory getInstance() throws DVFactoryException {
return getInstance(DEFAULT_FACTORY_CLASS);
} //getInstance(): SchemaDVFactory

Expand All @@ -66,7 +66,7 @@ public static synchronized final SchemaDVFactory getInstance() throws DVFactoryE
* @exception DVFactoryException cannot create an instance of the specified
* class name or the default class name
*/
public static synchronized final SchemaDVFactory getInstance(String factoryClass) throws DVFactoryException {
public static final SchemaDVFactory getInstance(String factoryClass) throws DVFactoryException {

try {
// if the class name is not specified, use the default one
Expand All @@ -78,7 +78,7 @@ public static synchronized final SchemaDVFactory getInstance(String factoryClass
}

// can't create a new object of this class
protected SchemaDVFactory(){}
protected SchemaDVFactory() {}

/**
* Get a built-in simple type of the given name
Expand Down

1 comment on commit 0678253

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.