weixin_39603217
weixin_39603217
2020-12-09 11:48

thread-unsafe null-check idiom in ServiceEngineFacadeImpl

com.sun.enterprise.jbi.serviceengine.bridge.ServiceEngineFacadeImpl

Visibility and race condition problem:

public static ServiceEngineFacadeImpl getInstance() { if (facade == null)

{ facade = new ServiceEngineFacadeImpl(); }

return facade; }

Environment

Operating System: All Platform: All

Affected Versions

[9.1pe]

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

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

7条回答

  • weixin_39603217 weixin_39603217 5月前
    • Issue Imported From: https://github.com/javaee/glassfish/issues/2134
    • 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 va146370 said: Fixed. Below is the checkin log- Checking in jbi/src/java/com/sun/enterprise/jbi/serviceengine/bridge/ServiceEngineFacadeImpl.java; /cvs/glassfish/appserv-addons/jbi/src/java/com/sun/enterprise/jbi/serviceengine/bridge/ServiceEngineFacadeImpl.java,v <-- ServiceEngineFacadeImpl.java new revision: 1.11; previous revision: 1.10 done

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

    Commented Was assigned to va146370

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

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

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

    Commented Reported by llc

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

    Commented Marked as fixed on Saturday, January 20th 2007, 4:38:24 pm

    点赞 评论 复制链接分享

相关推荐