weixin_39603217
weixin_39603217
2020-12-09 12:43

thread-unsafe null-check idiom in RelationMappingServiceFactory

com.sun.mfwk.agent.appserv.relation.RelationMappingServiceFactory

Visibility and race condition issues:

public static RelationMappingServiceFactory getInstance()

{ if (instance == null) instance = new RelationMappingServiceFactory(); return instance; }

Environment

Operating System: All Platform: All

Affected Versions

[9.1pe]

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

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

10条回答

  • weixin_39603217 weixin_39603217 5月前
    • Issue Imported From: https://github.com/javaee/glassfish/issues/2149
    • 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 static final variable at load time

    点赞 评论 复制链接分享
  • 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-2149

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

    Commented Reported by llc

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

    Commented Marked as fixed on Thursday, February 22nd 2007, 12:47:40 am

    点赞 评论 复制链接分享

相关推荐