weixin_39603217
weixin_39603217
2020-12-09 11:48

thread-unsafe null-check idiom in JavaEEServiceEngineContext

com.sun.enterprise.jbi.serviceengine.core.JavaEEServiceEngineContext

Visibility and race condition problems:

public static JavaEEServiceEngineContext getInstance()

{ if (serviceEngineContext == null) serviceEngineContext = new JavaEEServiceEngineContext(); return serviceEngineContext; }

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/2133
    • 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/core/JavaEEServiceEngineContext.java; /cvs/glassfish/appserv-addons/jbi/src/java/com/sun/enterprise/jbi/serviceengine/core/JavaEEServiceEngineContext.java,v <-- JavaEEServiceEngineContext.java new revision: 1.7; previous revision: 1.6 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-2133

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

    Commented Reported by llc

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

    Commented Marked as fixed on Saturday, January 20th 2007, 4:39:09 pm

    点赞 评论 复制链接分享

相关推荐