weixin_39603217
weixin_39603217
2020-12-09 12:43

thread-unsafe null-check idiom in ConnectionRegistry

com.sun.mfwk.agent.appserv.connection.ConnectionRegistry

Visibility and race condition problems:

public static ConnectionRegistry getInstance() { if (_instance == null)

{ _instance = new ConnectionRegistry(); }

return _instance; }

Environment

Operating System: All Platform: All

Affected Versions

[9.1pe]

该提问来源于开源项目:eclipse-ee4j/glassfish

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

10条回答

  • weixin_39603217 weixin_39603217 5月前

    Commented Was assigned to sirajg

    点赞 评论 复制链接分享
  • weixin_39603217 weixin_39603217 5月前

    Commented This issue was imported from java.net JIRA GLASSFISH-2145

    点赞 评论 复制链接分享
  • weixin_39603217 weixin_39603217 5月前

    Commented Reported by llc

    点赞 评论 复制链接分享
  • weixin_39603217 weixin_39603217 5月前

    Commented Marked as fixed on Wednesday, February 21st 2007, 7:18:29 am

    点赞 评论 复制链接分享
  • weixin_39603217 weixin_39603217 5月前
    • Issue Imported From: https://github.com/javaee/glassfish/issues/2145
    • Original Issue Raised By:
    • Original Issue Assigned To:
    • Original Issue Closed By:
    点赞 评论 复制链接分享
  • weixin_39603217 weixin_39603217 5月前

    Commented gfbugbridge said:

    点赞 评论 复制链接分享
  • weixin_39603217 weixin_39603217 5月前

    Commented gfbugbridge said: Reassign to Siraj

    点赞 评论 复制链接分享
  • weixin_39603217 weixin_39603217 5月前

    Commented sridatta said: will be fixed for FCS.Downgrading to a P3.

    点赞 评论 复制链接分享
  • weixin_39603217 weixin_39603217 5月前

    Commented sirajg said: FindBugs bug for race condition

    点赞 评论 复制链接分享
  • weixin_39603217 weixin_39603217 5月前

    Commented sirajg said: Fixed by creating instance at load time private static final ConnectionRegistry _instance = new ConnectionRegistry();

    点赞 评论 复制链接分享

相关推荐