weixin_39603217
weixin_39603217
2020-12-09 12:43

thread-unsafe null-check idiom in

Visibility and race condition problems:

public static AppclientJWSSupportManager getInstance() { if (instance == null) { instance = new AppclientJWSSupportManager(); if (instance.isJWSFeatureOn) { try

{ / Obtain the data structure object. */ instance.jwsInfo = AppclientJWSSupportInfo.getInstance(); }

catch (IOException ioe)

{ _logger.log(Level.SEVERE, "Error initializing Java Web Start support information", ioe); }

catch (Exception e)

{ throw new RuntimeException(e); }

} } return instance; }

Environment

Operating System: All Platform: All

Affected Versions

[9.1pe]

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

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

10条回答

  • weixin_39603217 weixin_39603217 5月前

    Commented Marked as fixed on Thursday, May 17th 2007, 4:08:27 am

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

    Commented said: assign to tim

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

    Commented said: Will fix for FCS.

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

    Commented gfbugbridge said:

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

    Commented said: Fix is straightforward: sync'ing the getInstance method.

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

    Commented said: Fix checked in earlier (b33).

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

    Commented Was assigned to tjquinno

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

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

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

    Commented Reported by llc

    点赞 评论 复制链接分享

相关推荐