weixin_39603217
weixin_39603217
2020-12-09 14:00

thread-unsafe null-check idiom in RequestEndAccessObjectImpl

com.sun.enterprise.admin.monitor.callflow.RequestEndAccessObjectImpl

Visibility and race condition problems:

public static TableAccessObject getInstance()

{ if(_singletonRE == null) _singletonRE = new RequestEndAccessObjectImpl (); return _singletonRE; }

Environment

Operating System: All Platform: All

Affected Versions

[9.1pe]

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

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

11条回答

  • weixin_39603217 weixin_39603217 5月前
    • Issue Imported From: https://github.com/javaee/glassfish/issues/2138
    • 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 harpreet said: Downgrading to P3. Will be fixed for FCS

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

    Commented gfbugbridge said: Reassign to Siraj

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

    Commented sirajg said: Callflow owned by Harpreet

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

    Commented harpreet said: Will replace the thread unsafe null check

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

    Commented harpreet said: Removed Thread unsafe null check issues from each of the TableAccessObjects. In addition, AgentImpl is now a singleton so at a higher level, none of the underlying TableAccessObjects classes will be called from multiple threads. Tests Run: PE QL, callflow tests Reviewed by: Mahesh Kannan Files Modified admin/monitor:

    AgentImpl.java DbAccessObjectImpl.java EndTimeAccessObjectImpl.java MethodEndAccessObjectImpl.java MethodStartAccessObjectImpl.java RequestEndAccessObjectImpl.java StartTimeAccessObjectImpl.java

    appserv-core AdminService

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

    Commented Was assigned to harpreet

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

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

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

    Commented Reported by llc

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

    Commented Marked as fixed on Monday, April 23rd 2007, 3:15:39 am

    点赞 评论 复制链接分享

相关推荐